|
|
@ -22,10 +22,6 @@ class EntriesController < ApplicationController |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
@completion_percent_by_typ_art = {} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Verbleibende Minuten je Kombination |
|
|
# Verbleibende Minuten je Kombination |
|
|
@remaining_minutes_matrix = {} |
|
|
@remaining_minutes_matrix = {} |
|
|
@time_by_typ_art.each do |typ, arts| |
|
|
@time_by_typ_art.each do |typ, arts| |
|
|
@ -38,6 +34,8 @@ class EntriesController < ApplicationController |
|
|
end |
|
|
end |
|
|
end |
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
@completion_percent_by_typ_art = {} |
|
|
|
|
|
|
|
|
User::PRAKTIKUMSTYPEN.product(User::ENTRY_ARTEN).each do |typ, art| |
|
|
User::PRAKTIKUMSTYPEN.product(User::ENTRY_ARTEN).each do |typ, art| |
|
|
total_required = current_user.required_hours_matrix.to_h.dig(typ, art).to_f |
|
|
total_required = current_user.required_hours_matrix.to_h.dig(typ, art).to_f |
|
|
remaining_minutes = @remaining_minutes_matrix.dig(typ, art).to_i |
|
|
remaining_minutes = @remaining_minutes_matrix.dig(typ, art).to_i |
|
|
@ -61,6 +59,8 @@ class EntriesController < ApplicationController |
|
|
@selbsterfahrungskosten_by_year = Entry.total_selbsterfahrungskosten_by_year(current_user) |
|
|
@selbsterfahrungskosten_by_year = Entry.total_selbsterfahrungskosten_by_year(current_user) |
|
|
@allekosten_by_year = Entry.total_semesterkosten_by_year(current_user) |
|
|
@allekosten_by_year = Entry.total_semesterkosten_by_year(current_user) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Voraussichtliches Ende je Kombination basierend auf weekly_target_matrix |
|
|
# Voraussichtliches Ende je Kombination basierend auf weekly_target_matrix |
|
|
# |
|
|
# |
|
|
@estimated_end_by_typ_art = {} |
|
|
@estimated_end_by_typ_art = {} |
|
|
|