diff --git a/app/views/entries/index.html.erb b/app/views/entries/index.html.erb index 3d8c8b2..02ed869 100644 --- a/app/views/entries/index.html.erb +++ b/app/views/entries/index.html.erb @@ -1,138 +1,150 @@
| Typ | +Art | +Verbleibend | +Soll (h) | +Wöchentlich | +Vorauss. Ende | +Fortschritt | +
|---|---|---|---|---|---|---|
| <%= typ.capitalize %> | +<%= art.capitalize %> | +<%= remaining ? "#{remaining / 60} h #{remaining % 60} min" : "—" %> | +<%= soll || "—" %> h | +<%= weekly || "—" %> h/Woche | +<%= ende.present? ? ende.strftime("%d.%m.%Y") : "—" %> | ++ <% percent = @completion_percent_by_typ_art[[typ, art]] %> + <%= percent ? "#{percent} %" : "—" %> + | +
<%= year %>: - <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> - (<%= km %> km bei <%= number_to_currency(rate, unit: "€", separator: ",", delimiter: ".", precision: 2) %>/km) -
- <% end %> -<%= year %>: - <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> -
- <% end %> + } + } + } %><%= year %>: - <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> -
- <% end %> -<%= year %>: + <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> + (<%= km %> km bei <%= number_to_currency(rate, unit: "€", separator: ",", delimiter: ".", precision: 2) %>/km) +
+ <% end %> +<%= year %>: - <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> -
- <% end %> -<%= year %>: + <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> +
+ <% end %> +<%= year %>: - <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> -
- <% end %> -<%= year %>: + <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> +
+ <% end %> +Total: <%= @total_minutes / 60 %>h <%= @total_minutes % 60 %> min
-Propädeutikum: <%= @total_minutes_praktikum_prop / 60 %>h <%= @total_minutes_praktikum_prop % 60 %> min
-Fachspezifikum: <%= @total_minutes_praktikum_fach / 60 %>h <%= @total_minutes_praktikum_fach % 60 %> min
+<%= year %>: + <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> +
+ <% end %> +<%= year %>: + <%= number_to_currency(sum, unit: "€", separator: ",", delimiter: ".", precision: 2) %> +
+ <% end %> +Total: <%= @total_minutes / 60 %>h <%= @total_minutes % 60 %> min
+Propädeutikum: <%= @total_minutes_praktikum_prop / 60 %>h <%= @total_minutes_praktikum_prop % 60 %> min
+Fachspezifikum: <%= @total_minutes_praktikum_fach / 60 %>h <%= @total_minutes_praktikum_fach % 60 %> min
+| Typ | -Art | -Verbleibend | -Soll (h) | -Wöchentlich | -Vorauss. Ende | -Fortschritt | -
|---|---|---|---|---|---|---|
| <%= typ.capitalize %> | -<%= art.capitalize %> | -<%= remaining ? "#{remaining / 60} h #{remaining % 60} min" : "—" %> | -<%= soll || "—" %> h | -<%= weekly || "—" %> h/Woche | -<%= ende.present? ? ende.strftime("%d.%m.%Y") : "—" %> | -- <% percent = @completion_percent_by_typ_art[[typ, art]] %> - <%= percent ? "#{percent} %" : "—" %> - | -