From 760f08c7e3a8bca12ca1821f4aa86caa611ef823 Mon Sep 17 00:00:00 2001 From: Jason Zimdars Date: Tue, 4 Feb 2025 14:49:15 -0600 Subject: [PATCH] Notifications need to be 3 lines (or at least al the same) for now --- app/views/notifications/_notification.html.erb | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/app/views/notifications/_notification.html.erb b/app/views/notifications/_notification.html.erb index abb42930e..bb5d2811c 100644 --- a/app/views/notifications/_notification.html.erb +++ b/app/views/notifications/_notification.html.erb @@ -7,12 +7,14 @@
<%= notification_title(notification) %> - <% if notification.event.action == "commented" %> -
- <%= strip_tags(notification.event.comment.body_html).truncate(200) %> +
+ <% if notification.event.action == "commented" %> + <%= "#{ strip_tags(notification.event.comment.body_html).blank? ? "#{ notification.event.creator.name } replied" : "#{ notification.event.creator.name }:" } #{ strip_tags(notification.event.comment.body_html).truncate(200) }" %> + <% else %> + <%= notification_body(notification) %> + <% end %>
- <% end %> -
<%= notification_body(notification) %> · <%= notification.bubble.bucket.name %> · <%= local_datetime_tag(notification.created_at, style: :ago) %>
+
<%= notification.bubble.bucket.name %> · <%= local_datetime_tag(notification.created_at, style: :ago) %>