X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e2f2124728ca755b2db8f83f022eaea24b647f0..67e77fd20e2b75e353cc26d3f3b79e7e789be49c:/app/views/notifier/friend_notification.html.erb?ds=sidebyside diff --git a/app/views/notifier/friend_notification.html.erb b/app/views/notifier/friend_notification.html.erb index 8917061f1..181b2b825 100644 --- a/app/views/notifier/friend_notification.html.erb +++ b/app/views/notifier/friend_notification.html.erb @@ -1,4 +1,7 @@ -<%= t'notifier.friend_notification.had_added_you', :user => @user %> +
<%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %>
-<%= t'notifier.friend_notification.see_their_profile', :userurl => @userurl %> +<%= raw t 'notifier.friend_notification.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %>
+<% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%> +<%= raw t 'notifier.friend_notification.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %>
+<% end -%>