]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notifier/note_comment_notification.html.erb
Merge remote-tracking branch 'upstream/pull/1926'
[rails.git] / app / views / notifier / note_comment_notification.html.erb
index 7492985317db950619621a3fa94c9c1a6c83e29e..3a828602865d17ad0bb8ce3aab0c4e085e3d3df1 100644 (file)
@@ -1,13 +1,15 @@
-<p><%= t 'notifier.note_comment_notification.greeting' %></p>
+<p><%= t ".greeting" %></p>
 
 <% if @owner %>
-  <p><%= raw t "notifier.note_comment_notification.#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %></p>
+  <p><%= raw t ".#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %></p>
 <% else %>
-  <p><%= raw t "notifier.note_comment_notification.#{@event}.commented_note", :commenter => link_to_user(@commenter), :place => @place %></p>
+  <p><%= raw t ".#{@event}.commented_note", :commenter => link_to_user(@commenter), :place => @place %></p>
 <% end %>
 
-<%= render "notifier/user_message_table", :captured => capture { %>
-  <%= @comment.to_html %>
-<% } %>
+<% unless @comment.empty? %>
+  <%= message_body do %>
+    <%= @comment.to_html %>
+  <% end %>
+<% end %>
 
-<p><%= raw t 'notifier.note_comment_notification.details', :url => link_to(@noteurl, @noteurl) %></p>
+<p><%= raw t ".details", :url => link_to(@noteurl, @noteurl) %></p>