X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/2e2f2124728ca755b2db8f83f022eaea24b647f0..d99f08314cd0302cd153517e4d0d7430abedf40a:/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..ca7754757 100644 --- a/app/views/notifier/friend_notification.html.erb +++ b/app/views/notifier/friend_notification.html.erb @@ -1,4 +1,20 @@ -<%= 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 %> +<%= + t 'notifier.friend_notification.see_their_profile', + :userurl => url_for(:host => SERVER_URL, + :controller => "user", :action => "view", + :display_name => @friend.befriender.display_name) +%> +<%= + unless @friend.befriendee.is_friends_with?(@friend.befriender) + t 'notifier.friend_notification.befriend_them', + :befriendurl => url_for(:host => SERVER_URL, + :controller => "user", :action => "make_friend", + :display_name => @friend.befriender.display_name) + end +%>