openstreetmap-website/app/views/notifier/note_comment_notification.text.erb
Herve Saint-Amand 448a68447f Don't display a box at all if the note event doesn't include a comment body
Before this it just displays en empty box, which looks wrong.
2017-02-08 22:22:21 +00:00

15 lines
461 B
Text

<%= t 'notifier.note_comment_notification.greeting' %>
<% if @owner %>
<%= t "notifier.note_comment_notification.#{@event}.your_note", :commenter => @commenter, :place => @place %>
<% else %>
<%= t "notifier.note_comment_notification.#{@event}.commented_note", :commenter => @commenter, :place => @place %>
<% end %>
<% unless @comment.empty? %>
==
<%= @comment.to_text %>
==
<% end %>
<%= t 'notifier.note_comment_notification.details', :url => @noteurl %>