From 7f83692317119cd97e0d4f4adc4095daef5de4ca Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sun, 3 Feb 2013 11:10:24 +0000 Subject: [PATCH] Improve date display in user notes list --- app/views/notes/mine.html.erb | 4 ++-- config/locales/en.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/views/notes/mine.html.erb b/app/views/notes/mine.html.erb index d7d866337..fd0e29165 100644 --- a/app/views/notes/mine.html.erb +++ b/app/views/notes/mine.html.erb @@ -26,8 +26,8 @@ <%= link_to note.id.to_s, :controller => "browse", :action => "note", :id => note.id %> <%= note_author(note.author) %> <%= note.comments.first.body.to_html %> - <%= friendly_date(note.created_at) %> - <%= friendly_date(note.updated_at) %> + <%= t 'note.mine.ago_html', :when => friendly_date(note.created_at) %> + <%= t 'note.mine.ago_html', :when => friendly_date(note.updated_at) %> <% end -%> diff --git a/config/locales/en.yml b/config/locales/en.yml index 67f1aa909..00bc48097 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -2004,6 +2004,7 @@ en: description: "Description" created_at: "Created at" last_changed: "Last changed" + ago_html: "%{when} ago" javascripts: map: base: -- 2.43.2