Use distance_in_words_ago scope for issues display

Refs #2255
This commit is contained in:
Andy Allan 2019-06-19 11:27:37 +02:00
parent df560bd71d
commit 50d469a74a
2 changed files with 4 additions and 4 deletions

View file

@ -38,10 +38,10 @@
<td>
<% if issue.user_updated %>
<%= t ".last_updated_time_user_html", :user => link_to(issue.user_updated.display_name, user_path(issue.user_updated)),
:time => distance_of_time_in_words_to_now(issue.updated_at),
:time => time_ago_in_words(issue.updated_at, :scope => :'datetime.distance_in_words_ago'),
:title => l(issue.updated_at) %>
<% else %>
<%= t ".last_updated_time_html", :time => distance_of_time_in_words_to_now(issue.updated_at),
<%= t ".last_updated_time_html", :time => time_ago_in_words(issue.updated_at, :scope => :'datetime.distance_in_words_ago'),
:title => l(issue.updated_at) %>
<% end %>
</td>

View file

@ -1027,8 +1027,8 @@ en:
status: Status
reports: Reports
last_updated: Last Updated
last_updated_time_html: "<abbr title='%{title}'>%{time} ago</abbr>"
last_updated_time_user_html: "<abbr title='%{title}'>%{time} ago</abbr> by %{user}"
last_updated_time_html: "<abbr title='%{title}'>%{time}</abbr>"
last_updated_time_user_html: "<abbr title='%{title}'>%{time}</abbr> by %{user}"
link_to_reports: View Reports
reported_user: Reported User
reports_count: