Use friendly_date_ago helper for changeset comments

Refs #2255
This commit is contained in:
Andy Allan 2019-06-19 12:06:13 +02:00
parent 3167e6b4bb
commit 75bf96c4f3
2 changed files with 2 additions and 2 deletions

View 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>