From: Andy Allan Date: Wed, 19 Jun 2019 10:05:47 +0000 (+0200) Subject: Use friendly_date_ago helper for chnagesets X-Git-Tag: live~3196^2~4 X-Git-Url: https://git.openstreetmap.org./rails.git/commitdiff_plain/3167e6b4bbbf01c2b69d9e67117a734ff0544b6a Use friendly_date_ago helper for chnagesets Refs #2255 --- diff --git a/app/views/browse/changeset.html.erb b/app/views/browse/changeset.html.erb index d52a47426..9ad35b2a7 100644 --- a/app/views/browse/changeset.html.erb +++ b/app/views/browse/changeset.html.erb @@ -36,7 +36,7 @@
  • <%= t(".commented_by", - :when => friendly_date(comment.created_at), + :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %> <% if current_user and current_user.moderator? %> @@ -49,7 +49,7 @@
  • <%= t(".hidden_commented_by", - :when => friendly_date(comment.created_at), + :when => friendly_date_ago(comment.created_at), :exact_time => l(comment.created_at), :user => link_to(h(comment.author.display_name), user_path(comment.author))).html_safe %> — <%= t("javascripts.changesets.show.unhide_comment") %> diff --git a/config/locales/en.yml b/config/locales/en.yml index 517f419c2..7408829a1 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -210,8 +210,8 @@ en: relation: "Relations (%{count})" relation_paginated: "Relations (%{x}-%{y} of %{count})" comment: "Comments (%{count})" - hidden_commented_by: "Hidden comment from %{user} %{when} ago" - commented_by: "Comment from %{user} %{when} ago" + hidden_commented_by: "Hidden comment from %{user} %{when}" + commented_by: "Comment from %{user} %{when}" changesetxml: "Changeset XML" osmchangexml: "osmChange XML" feed: