Add more context
This commit is contained in:
@@ -4,6 +4,8 @@ module NotificationsHelper
|
||||
|
||||
if notification.resource.is_a? Comment
|
||||
"RE: " + title
|
||||
elsif notification_event_action(notification) == "assigned"
|
||||
"Assigned to you: " + title
|
||||
else
|
||||
title
|
||||
end
|
||||
@@ -13,7 +15,6 @@ module NotificationsHelper
|
||||
name = notification.creator.name
|
||||
|
||||
case notification_event_action(notification)
|
||||
when "assigned" then "#{name} assigned to you"
|
||||
when "popped" then "Popped by by #{name}"
|
||||
when "published" then "Added by #{name}"
|
||||
else name
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
|
||||
<div class="flex flex-column txt-tight-lines min-width flex-item-grow">
|
||||
<strong class="overflow-ellipsis"><%= notification_title(notification) %></strong>
|
||||
<div class="overflow-ellipsis"><%= notification_body(notification) %> · <%= local_datetime_tag(notification.created_at, style: :ago) %></div>
|
||||
<div class="overflow-ellipsis translucent"><%= notification_body(notification) %> · <%= notification.bubble.bucket.name %> · <%= local_datetime_tag(notification.created_at, style: :ago) %></div>
|
||||
</div>
|
||||
|
||||
<div class="notification__unread_indicator flex flex-column flex-item-justify-end">
|
||||
|
||||
Reference in New Issue
Block a user