|
|
|
@ -1,12 +1,13 @@ |
|
|
|
<h1 class="mb‑4">Monats‑Report</h1> |
|
|
|
|
|
|
|
<% @report.each do |month, groups| %> |
|
|
|
<div class="card mb‑4 mt-4"> |
|
|
|
<% is_current_month = month.month == Date.today.month && month.year == Date.today.year %> |
|
|
|
<div class="card mb‑4 mt-4 <%= 'bg-secondary text-white' if is_current_month %>"> |
|
|
|
<div class="card-header"> |
|
|
|
<strong><%= month.strftime("%B %Y") %></strong> |
|
|
|
</div> |
|
|
|
<div class="card-body"> |
|
|
|
<table class="table table‑sm table‑bordered table-striped "> |
|
|
|
<table class="table table‑sm table‑bordered table-stripe"> |
|
|
|
<thead> |
|
|
|
<tr> |
|
|
|
<th style="width: 33%">Typ</th> |
|
|
|
@ -16,7 +17,7 @@ |
|
|
|
</thead> |
|
|
|
<tbody> |
|
|
|
<% groups.each do |(typ, art), data| %> |
|
|
|
<tr> |
|
|
|
<tr > |
|
|
|
<td><%= typ.capitalize %></td> |
|
|
|
<td><%= art %></td> |
|
|
|
<td><%= data[:hours] %>h <%= data[:minutes] %>min</td> |
|
|
|
|