]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/notifier/note_comment_notification.html.erb
Don't display a box at all if the note event doesn't include a comment body
[rails.git] / app / views / notifier / note_comment_notification.html.erb
index 88b8f9603d4a517509dafce7675fac6cc73271f6..909bffaa664c087873694dae8b8356d1a073d8d8 100644 (file)
@@ -1,4 +1,4 @@
-<p style="margin: 0"><%= t 'notifier.note_comment_notification.greeting' %></p>
+<p><%= t 'notifier.note_comment_notification.greeting' %></p>
 
 <% if @owner %>
   <p><%= raw t "notifier.note_comment_notification.#{@event}.your_note", :commenter => link_to_user(@commenter), :place => @place %></p>
@@ -6,8 +6,10 @@
   <p><%= raw t "notifier.note_comment_notification.#{@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>