X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/be0e33862fedbf02e52a9e126cac31dfb5775b43..cbea796ef412840af9a3ec2fd26bf08657fc4cd3:/app/views/api/notes/_comment.html.erb?ds=inline 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 %>