]> git.openstreetmap.org Git - rails.git/commitdiff
Use friendly_date_ago helper for changeset comments
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 10:06:13 +0000 (12:06 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 16:04:08 +0000 (18:04 +0200)
Refs #2255

app/views/changeset_comments/_comment.html.erb
config/locales/en.yml

index 3b8314decf28c6b082aef69dc0175757dc759034..a312e4f0f06d6e9db68a222bd48fce4b1cc9e543 100644 (file)
@@ -2,6 +2,6 @@
           :author => comment.author.display_name,
           :changeset_id => comment.changeset.id.to_s %></h2>
 <div class="changeset-comment" style="margin-top: 5px">
-  <div class="changeset-comment-description" style="font-size: smaller; color: #999999"><%= t ".commented_at_by_html", :when => friendly_date(comment.created_at), :user => comment.author.display_name %></div>
+  <div class="changeset-comment-description" style="font-size: smaller; color: #999999"><%= t ".commented_at_by_html", :when => friendly_date_ago(comment.created_at), :user => comment.author.display_name %></div>
   <div class="changeset-comment-text"><%= comment.body %></div>
 </div>
index 7408829a1b737f7ee253bf7c62749f325b52e2d1..30f15d806d11874f5d814857f8787a5107449223 100644 (file)
@@ -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: