fixed dropdown text for comments
This commit is contained in:
parent
cfbed77fa3
commit
1db856c0fe
|
@ -59,7 +59,13 @@
|
|||
.notification--dropdown-text
|
||||
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 }}
|
||||
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
|
||||
ago
|
||||
%li= link_to "Show all notifications#{" and mark them as read" if notifications.pluck(:new).any?}", notifications_path
|
Loading…
Reference in New Issue