From 642506e79ed5a0a4e977d1e3ea099c48b1ae0aaf Mon Sep 17 00:00:00 2001 From: Mike Dalessio Date: Mon, 8 Dec 2025 11:52:17 -0500 Subject: [PATCH] Add datetime to the search results I find it helpful (especially when going through a long list of results) to know how far back in time I'm looking. A note on the timestamp being used: it's the search index timestamp. Using the card or comment `updated_at` is fraught because we do so much touching of records (e.g., comment is touched when a reaction is added; card is touched when a comment is added). Let's display the search record's `created_at`, which is the ordering used for the overall results. --- app/views/searches/_result.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/searches/_result.html.erb b/app/views/searches/_result.html.erb index b2b131910..ec110dd80 100644 --- a/app/views/searches/_result.html.erb +++ b/app/views/searches/_result.html.erb @@ -15,7 +15,7 @@ <% end %>
- <%= result.card.board.name %> + <%= result.card.board.name %> ยท <%= local_datetime_tag(result.created_at, style: :timeordate) %>
<% end %>