From: Andy Allan Date: Wed, 19 Jun 2019 10:11:47 +0000 (+0200) Subject: Use friendly_date_ago for notes display X-Git-Tag: live~2561^2~1 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/220ad927662dcc3e93a7cee337ddc385e19cd386 Use friendly_date_ago for notes display Refs #2255 --- diff --git a/app/views/notes/mine.html.erb b/app/views/notes/mine.html.erb index 2751e1559..c7015578b 100644 --- a/app/views/notes/mine.html.erb +++ b/app/views/notes/mine.html.erb @@ -26,8 +26,8 @@ <%= link_to note.id, browse_note_path(note) %> <%= note_author(note.author) %> <%= note.comments.first.body.to_html %> - <%= t ".ago_html", :when => friendly_date(note.created_at) %> - <%= t ".ago_html", :when => friendly_date(note.updated_at) %> + <%= friendly_date_ago(note.created_at) %> + <%= friendly_date_ago(note.updated_at) %> <% end -%> diff --git a/config/locales/en.yml b/config/locales/en.yml index a88c35382..8a6a97dc8 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2434,7 +2434,6 @@ en: description: "Description" created_at: "Created at" last_changed: "Last changed" - ago_html: "%{when} ago" javascripts: close: Close share: