X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/edaddbedaec78a252e988e2271962407e64483fd..2160f820ac9fe3f78deb97a3a4285e9bf8daa095:/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..cfea97195 100644 --- a/app/views/notifier/friend_notification.html.erb +++ b/app/views/notifier/friend_notification.html.erb @@ -1,4 +1,9 @@ -<%= 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 %> +<%= message_body do %> +<%= 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 -%> +<% end %>