From 60ec66ee2d9646b04b4e68ec78cc44f4e665d8a2 Mon Sep 17 00:00:00 2001 From: Quentin Grosyeux Date: Thu, 12 Dec 2013 17:40:49 +0100 Subject: [PATCH] Summary display correction --- onyx/tpl/bootstrap/summary.tpl | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/onyx/tpl/bootstrap/summary.tpl b/onyx/tpl/bootstrap/summary.tpl index d0350e49..6c2572de 100644 --- a/onyx/tpl/bootstrap/summary.tpl +++ b/onyx/tpl/bootstrap/summary.tpl @@ -14,6 +14,7 @@ {$theme->get_name()} {$sum=0} + {$cpt=0} {$themeID=$theme->get_id()} {$solved_exercices=$my_team->get_solved_exercices($themeID)} {foreach from=$theme->get_exercices_ordered() item=exo} @@ -30,8 +31,12 @@ {else} {$pts} {/if} + {$cpt=$cpt+1} {/foreach} - {$sum} + {for $i=$cpt to $nbExoMax-1} + + {/for} + {$sum} {$total=$total+$sum} {/foreach} @@ -42,4 +47,4 @@ {$total} - + \ No newline at end of file