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

app/views/notes/mine.html.erb
config/locales/en.yml

index 2751e1559a4572440f3ab56e60cd88c2da36fe64..c7015578b24ed575ba913cfad7cd4567f990c755 100644 (file)
@@ -26,8 +26,8 @@
     <td><%= link_to note.id, browse_note_path(note) %></td>
     <td><%= note_author(note.author) %></td>
     <td><%= note.comments.first.body.to_html %></td>
-    <td><%= t ".ago_html", :when => friendly_date(note.created_at) %></td>
-    <td><%= t ".ago_html", :when => friendly_date(note.updated_at) %></td>
+    <td><%= friendly_date_ago(note.created_at) %></td>
+    <td><%= friendly_date_ago(note.updated_at) %></td>
   </tr>
 <% end -%>
 </table>
index a88c3538260698d672a50547ac29d30bc9da872c..8a6a97dc86751ddbc2768f026b104cf52c41d756 100644 (file)
@@ -2434,7 +2434,6 @@ en:
       description: "Description"
       created_at: "Created at"
       last_changed: "Last changed"
-      ago_html: "%{when} ago"
   javascripts:
     close: Close
     share: