X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/94b59f440321846760d430fee378f05a6a2803ee..09225bc02df4eedd0f90376f1b86cb059de38d31:/app/views/api/notes/_comment.html.erb?ds=sidebyside diff --git a/app/views/api/notes/_comment.html.erb b/app/views/api/notes/_comment.html.erb index d9c17848b..f599eec14 100644 --- a/app/views/api/notes/_comment.html.erb +++ b/app/views/api/notes/_comment.html.erb @@ -1,8 +1,8 @@
<% if comment.author.nil? -%> -
<%= t ".#{comment.event}_at_html", :when => friendly_date(comment.created_at) %>
+
<%= t ".#{comment.event}_at_html", :when => friendly_date_ago(comment.created_at) %>
<% else -%> -
<%= t ".#{comment.event}_at_by_html", :when => friendly_date(comment.created_at), :user => note_author(comment.author, :only_path => false) %>
+
<%= t ".#{comment.event}_at_by_html", :when => friendly_date_ago(comment.created_at), :user => note_author(comment.author, :only_path => false) %>
<% end -%>
<%= comment.body %>