X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/00375024263970a43ea7d39e3c65dfd0f32e8869..925bd812a2c9000c4901384b70f20e65b0f53cd4:/app/views/notes/_description.html.erb diff --git a/app/views/notes/_description.html.erb b/app/views/notes/_description.html.erb index 596d63269..761b69ea2 100644 --- a/app/views/notes/_description.html.erb +++ b/app/views/notes/_description.html.erb @@ -1,7 +1,11 @@
<% description.comments.each do |comment| -%>
-
<%= t "note.description.#{comment.event}_at_by", :when => friendly_date(comment.created_at), :user => note_author(comment, :only_path => false) %>
+ <% if comment.author.nil? -%> +
<%= t "note.description.#{comment.event}_at", :when => friendly_date(comment.created_at) %>
+ <% else -%> +
<%= t "note.description.#{comment.event}_at_by", :when => friendly_date(comment.created_at), :user => note_author(comment.author, :only_path => false) %>
+ <% end -%>
<%= comment.body %>
<% end -%>