From 36681fbbd3686a4deba6aa42ab0f70925ae604a1 Mon Sep 17 00:00:00 2001 From: Christoph Marzell Date: Thu, 13 Nov 2025 11:22:23 +0100 Subject: [PATCH] fix display of color --- app/views/entries/monthly_report.html.erb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/views/entries/monthly_report.html.erb b/app/views/entries/monthly_report.html.erb index 59c0f90..1067f56 100644 --- a/app/views/entries/monthly_report.html.erb +++ b/app/views/entries/monthly_report.html.erb @@ -1,12 +1,13 @@

Monats‑Report

<% @report.each do |month, groups| %> -
+ <% is_current_month = month.month == Date.today.month && month.year == Date.today.year %> +
<%= month.strftime("%B %Y") %>
- +
@@ -16,7 +17,7 @@ <% groups.each do |(typ, art), data| %> - +
Typ
<%= typ.capitalize %> <%= art %> <%= data[:hours] %>h <%= data[:minutes] %>min