X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/4d91fe3dd95c1058cb8d24fd4c900223e30b9059..898cc828dd1f1167f85abbf35c8e3f0ed640ac1e:/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 -%>