📊 Dashboard
<%= render partial: 'dashboards/summary_tiles' %>
🎯 Fortschritt je Kombination
| Typ |
Art |
Geleistet |
Ziel |
Fortschritt |
<% User::PRAKTIKUMSTYPEN.each do |typ| %>
<% User::ENTRY_ARTEN.each do |art| %>
<% spent = @spent_minutes_matrix.dig(typ, art).to_i %>
<% 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 %>