From 7649886b8c9aa4fc179ddffaad4030a6a7f6979c Mon Sep 17 00:00:00 2001 From: Christoph Marzell Date: Tue, 21 Jul 2026 05:42:15 +0200 Subject: [PATCH] add today row --- app/views/entries/index.html.erb | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/app/views/entries/index.html.erb b/app/views/entries/index.html.erb index 5fb1e7b..d254b74 100644 --- a/app/views/entries/index.html.erb +++ b/app/views/entries/index.html.erb @@ -307,11 +307,19 @@ <% @entries.each do |entry| %> <% duration_in_minutes = entry.hours.to_i * 60 + entry.minutes.to_i %> - + <% is_today = entry.date == Date.current %> + + <%= entry.date.strftime('%d.%m.%Y') %> - + <% if is_today %> + Heute + <% end %> + <% if duration_in_minutes > 0 %> <%= formatted_duration(entry) %>