From 40f39257129cc178fe136a03c4dffebba48160e8 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Fri, 24 Jan 2025 14:09:59 -0600 Subject: [PATCH] Add more context --- app/helpers/notifications_helper.rb | 3 ++- app/views/notifications/_notification.html.erb | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/helpers/notifications_helper.rb b/app/helpers/notifications_helper.rb index 9d3b9a259..5143ede77 100644 --- a/app/helpers/notifications_helper.rb +++ b/app/helpers/notifications_helper.rb @@ -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 diff --git a/app/views/notifications/_notification.html.erb b/app/views/notifications/_notification.html.erb index d309015b3..7271626e4 100644 --- a/app/views/notifications/_notification.html.erb +++ b/app/views/notifications/_notification.html.erb @@ -7,7 +7,7 @@
<%= notification_title(notification) %> -
<%= notification_body(notification) %> · <%= local_datetime_tag(notification.created_at, style: :ago) %>
+
<%= notification_body(notification) %> · <%= notification.bubble.bucket.name %> · <%= local_datetime_tag(notification.created_at, style: :ago) %>