X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/5e9ae68fb223195f67bfb3992f1d7b0116437d71..9d739b3d5b0450ea1a24dd86c5e15477866c0a41:/app/views/notifier/friend_notification.html.erb diff --git a/app/views/notifier/friend_notification.html.erb b/app/views/notifier/friend_notification.html.erb index ca7754757..cfea97195 100644 --- a/app/views/notifier/friend_notification.html.erb +++ b/app/views/notifier/friend_notification.html.erb @@ -1,20 +1,9 @@ -<%= - t 'notifier.friend_notification.had_added_you', - :user => @friend.befriender.display_name -%> +
<%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %>
-<%= - t 'notifier.friend_notification.see_their_profile', - :userurl => url_for(:host => SERVER_URL, - :controller => "user", :action => "view", - :display_name => @friend.befriender.display_name) -%> +<%= message_body do %> +<%= raw t 'notifier.friend_notification.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %>
-<%= - 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 -%> + <% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%> +<%= raw t 'notifier.friend_notification.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %>
+ <% end -%> +<% end %>