]> git.openstreetmap.org Git - rails.git/commitdiff
Use distance_in_words_ago scope for issues display
authorAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 09:27:37 +0000 (11:27 +0200)
committerAndy Allan <git@gravitystorm.co.uk>
Wed, 19 Jun 2019 16:04:08 +0000 (18:04 +0200)
Refs #2255

app/views/issues/index.html.erb
config/locales/en.yml

index 87d3b03d016728eaa5c9718baccab46d4bbd8ddd..1c45f41246395d9eb97d4598fef1df7db910ee1b 100644 (file)
         <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>
index 8aa34081ad89ff54c37c0852ec2818741ef64f08..ff74c785f90021700ba7ea7286ed17da2949157e 100644 (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: