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