From 091bf88a5ff32363e9d4cc67804be074fdf501a1 Mon Sep 17 00:00:00 2001 From: Nenad Vujicic Date: Tue, 17 Sep 2024 23:20:41 +0200 Subject: [PATCH] Added greeting to friendship notification Added greeting 'Hi {user display name},' to friendship notification email. As a side effect, user_mailer.friendship_notification.hi is not anymore reported as unused. --- app/views/user_mailer/friendship_notification.html.erb | 2 ++ app/views/user_mailer/friendship_notification.text.erb | 2 ++ 2 files changed, 4 insertions(+) diff --git a/app/views/user_mailer/friendship_notification.html.erb b/app/views/user_mailer/friendship_notification.html.erb index ee2dea2eb..40af762d7 100644 --- a/app/views/user_mailer/friendship_notification.html.erb +++ b/app/views/user_mailer/friendship_notification.html.erb @@ -1,3 +1,5 @@ +

<%= t ".hi", :to_user => @friendship.befriendee.display_name %>

+

<%= t ".had_added_you", :user => @friendship.befriender.display_name %>

<%= message_body do %> diff --git a/app/views/user_mailer/friendship_notification.text.erb b/app/views/user_mailer/friendship_notification.text.erb index 22c2bbfe7..104b0f1c9 100644 --- a/app/views/user_mailer/friendship_notification.text.erb +++ b/app/views/user_mailer/friendship_notification.text.erb @@ -1,3 +1,5 @@ +<%= t ".hi", :to_user => @friendship.befriendee.display_name %> + <%= t '.had_added_you', :user => @friendship.befriender.display_name %> <%= t '.see_their_profile', :userurl => @viewurl %> -- 2.39.5