From 0195dd60a4172f4d972e51322867e7ae707afad0 Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 15 Nov 2023 19:46:10 +0000 Subject: [PATCH] Simplify date display by using friendly_date helpers --- app/views/browse/_common_details.html.erb | 3 +-- app/views/diary_entries/comments.html.erb | 4 +++- app/views/issues/index.html.erb | 6 ++---- app/views/traces/_trace.html.erb | 4 +--- 4 files changed, 7 insertions(+), 10 deletions(-) diff --git a/app/views/browse/_common_details.html.erb b/app/views/browse/_common_details.html.erb index 9eb6b5bfe..4726799e7 100644 --- a/app/views/browse/_common_details.html.erb +++ b/app/views/browse/_common_details.html.erb @@ -14,8 +14,7 @@

- - <%= time_ago_in_words(trace.timestamp, :scope => :"datetime.distance_in_words_ago") %> - + <%= friendly_date_ago(trace.timestamp) %> <%= t ".by" %> <%= link_to trace.user.display_name, user_path(trace.user) %> <% if !trace.tags.empty? %> <%= t ".in" %> -- 2.39.5