mirror of
https://github.com/Retrospring/retrospring.git
synced 2025-03-21 06:47:48 +01:00
fixed dropdown text for comments
This commit is contained in:
parent
cfbed77fa3
commit
1db856c0fe
1 changed files with 7 additions and 1 deletions
|
@ -59,7 +59,13 @@
|
||||||
.notification--dropdown-text
|
.notification--dropdown-text
|
||||||
commented on
|
commented on
|
||||||
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), title: "#{notification.target.answer.content[0..40]}...", data: { toggle: :tooltip, placement: :top }}
|
%a{href: show_user_answer_path(username: notification.target.user.screen_name, id: notification.target.answer.id), title: "#{notification.target.answer.content[0..40]}...", data: { toggle: :tooltip, placement: :top }}
|
||||||
your answer
|
- if notification.target.answer.user == current_user
|
||||||
|
your
|
||||||
|
- elsif notification.target.user == notification.target.answer.user
|
||||||
|
their
|
||||||
|
- else
|
||||||
|
= user_screen_name(notification.target.answer.user, false, false) + "'s"
|
||||||
|
answer
|
||||||
= time_ago_in_words notification.target.created_at
|
= time_ago_in_words notification.target.created_at
|
||||||
ago
|
ago
|
||||||
%li= link_to "Show all notifications#{" and mark them as read" if notifications.pluck(:new).any?}", notifications_path
|
%li= link_to "Show all notifications#{" and mark them as read" if notifications.pluck(:new).any?}", notifications_path
|
Loading…
Reference in a new issue