X-Git-Url: https://git.openstreetmap.org/rails.git/blobdiff_plain/b1308a87be1aaa0c6e5fd27e0635ef22b76e8081..5dda4196d50774e8a44e9e137d45141d4151764b:/app/views/notes/_comment.html.erb diff --git a/app/views/notes/_comment.html.erb b/app/views/notes/_comment.html.erb new file mode 100644 index 000000000..4fe7b59d5 --- /dev/null +++ b/app/views/notes/_comment.html.erb @@ -0,0 +1,8 @@ +
+ <% 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 %>
+