5 changed files with 66 additions and 3 deletions
@ -0,0 +1,29 @@ |
|||||
|
<h1 class="mb‑4">Monats‑Report</h1> |
||||
|
|
||||
|
<% @report.each do |month, groups| %> |
||||
|
<div class="card mb‑4 mt-4"> |
||||
|
<div class="card-header"> |
||||
|
<strong><%= month.strftime("%B %Y") %></strong> |
||||
|
</div> |
||||
|
<div class="card-body"> |
||||
|
<table class="table table‑sm table‑bordered table-striped "> |
||||
|
<thead> |
||||
|
<tr> |
||||
|
<th style="width: 33%">Typ</th> |
||||
|
<th style="width: 33%">Art</th> |
||||
|
<th style="width: 33%">Gesamtzeit</th> |
||||
|
</tr> |
||||
|
</thead> |
||||
|
<tbody> |
||||
|
<% groups.each do |(typ, art), data| %> |
||||
|
<tr> |
||||
|
<td><%= typ.capitalize %></td> |
||||
|
<td><%= art %></td> |
||||
|
<td><%= data[:hours] %>h <%= data[:minutes] %>min</td> |
||||
|
</tr> |
||||
|
<% end %> |
||||
|
</tbody> |
||||
|
</table> |
||||
|
</div> |
||||
|
</div> |
||||
|
<% end %> |
||||
Loading…
Reference in new issue