-<%=
- t 'notifier.friend_notification.had_added_you',
- :user => @friend.befriender.display_name
-%>
+<p><%= t '.had_added_you', :user => @friend.befriender.display_name %></p>
-<%=
- 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 %>
+ <p><%= raw t '.see_their_profile', :userurl => link_to(@viewurl, @viewurl) %></p>
-<%=
- 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) -%>
+ <p><%= raw t '.befriend_them', :befriendurl => link_to(@friendurl, @friendurl) %></p>
+ <% end -%>
+<% end %>