📊 Dashboard
<%= render partial: 'dashboards/summary_tiles' %>
🎯 Fortschritt je Kombination
| Typ |
Art |
Geleistet |
Ziel |
Fortschritt |
<% @spent_minutes_matrix.each do |typ, arts| %>
<% arts.each do |art, spent| %>
<% target = current_user.required_hours_matrix.dig(typ, art).to_i * 60 %>
<% percent = target > 0 ? ((spent.to_f / target) * 100).round : 0 %>
| <%= typ.capitalize %> |
<%= art.capitalize %> |
<%= spent / 60 %>h <%= spent % 60 %>min |
<%= target / 60 %>h |
|
<% end %>
<% end %>