📊 Dashboard

<%= render partial: 'dashboards/summary_tiles' %>
🎯 Fortschritt je Kombination
<% 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 %> <% end %> <% end %>
Typ Art Geleistet Ziel Fortschritt
<%= typ.capitalize %> <%= art.capitalize %> <%= spent / 60 %>h <%= spent % 60 %>min <%= target / 60 %>h
<%= percent %>%