From 220ad927662dcc3e93a7cee337ddc385e19cd386 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 19 Jun 2019 12:11:47 +0200 Subject: [PATCH] Use friendly_date_ago for notes display Refs #2255 --- app/views/notes/mine.html.erb | 4 ++-- config/locales/en.yml | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) 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: -- 2.43.2