X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/52e5fa6ad78f375cec5a207a123a4aa3939c8ddf..965f32d545d7c44ad7b36264b818b930a50d8901:/app/views/notifier/friend_notification.text.erb diff --git a/app/views/notifier/friend_notification.text.erb b/app/views/notifier/friend_notification.text.erb index ca7754757..ae89a4136 100644 --- a/app/views/notifier/friend_notification.text.erb +++ b/app/views/notifier/friend_notification.text.erb @@ -1,20 +1,7 @@ -<%= - 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) -%> +<%= t 'notifier.friend_notification.see_their_profile', :userurl => @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) -%> +<%= t 'notifier.friend_notification.befriend_them', :befriendurl => @friendurl %> +<% end -%>