X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/39c3fa427ea273e9011c380f9d2f2a9759cddb24..22f7c1f721e5a77786f9f61fa219f262784757ac:/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 181b2b825..3f260dc92 100644 --- a/app/views/notifier/friend_notification.html.erb +++ b/app/views/notifier/friend_notification.html.erb @@ -1,7 +1,11 @@ -

<%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %>

+<% content_for :body do %> +

<%= t 'notifier.friend_notification.had_added_you', :user => @friend.befriender.display_name %>

-

<%= raw t 'notifier.friend_notification.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %>

+ <%= render "notifier/user_message_table", :captured => capture { %> +

<%= 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 -%> + <% unless @friend.befriendee.is_friends_with?(@friend.befriender) -%> +

<%= raw t 'notifier.friend_notification.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %>

+ <% end -%> + <% } %> +<% end %>