Add more context

This commit is contained in:
Jason Zimdars
2025-01-24 14:09:59 -06:00
parent 823602bcee
commit 40f3925712
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -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">