Skip to content
Extraits de code Groupes Projets
Valider 3d6e478a rédigé par echarp's avatar echarp
Parcourir les fichiers

Ajout total par région

parent d9b69aff
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -19,6 +19,7 @@
%th/
- @years.each do |year|
%th= year[0]
%th/
%tbody
- (1..12).each do |m|
%tr
......@@ -50,14 +51,19 @@
%th/
- @years.each do |year|
%th= year[0]
%th=t '.total'
%th/
%tbody
- Region.all.each do |region|
%tr
%th.month= region
- total = 0
- @years.each do |year|
%td.quantity
- total += @regions[[region.id, year[0]]] || 0
= link_to root_path(year: "#{year[0]}", region: region.id) do
= number_with_delimiter @regions[[region.id, year[0]]]
%th.total= number_with_delimiter total
%td.sparkline/
%h3=t '.city'
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Veuillez vous inscrire ou vous pour commenter