From: Andy Allan Date: Wed, 19 Jun 2019 10:06:13 +0000 (+0200) Subject: Use friendly_date_ago helper for changeset comments X-Git-Tag: live~2558^2~3 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/75bf96c4f3472a21163032a25ff7700d3c692225 Use friendly_date_ago helper for changeset comments Refs #2255 --- diff --git a/app/views/changeset_comments/_comment.html.erb b/app/views/changeset_comments/_comment.html.erb index 3b8314dec..a312e4f0f 100644 --- a/app/views/changeset_comments/_comment.html.erb +++ b/app/views/changeset_comments/_comment.html.erb @@ -2,6 +2,6 @@ :author => comment.author.display_name, :changeset_id => comment.changeset.id.to_s %>
-
<%= t ".commented_at_by_html", :when => friendly_date(comment.created_at), :user => comment.author.display_name %>
+
<%= t ".commented_at_by_html", :when => friendly_date_ago(comment.created_at), :user => comment.author.display_name %>
<%= comment.body %>
diff --git a/config/locales/en.yml b/config/locales/en.yml index 7408829a1..30f15d806 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -333,7 +333,7 @@ en: changeset_comments: comment: comment: "New comment on changeset #%{changeset_id} by %{author}" - commented_at_by_html: "Updated %{when} ago by %{user}" + commented_at_by_html: "Updated %{when} by %{user}" comments: comment: "New comment on changeset #%{changeset_id} by %{author}" index: