From 481ff2335c42ae1be0263eb5529981ad4b73dda0 Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Mon, 5 Aug 2013 09:59:24 +0200 Subject: tu_details.php: Avoid inline computations Compute the total number of votes and the participation at the beginning of the template instead of doing it inside the template itself. Signed-off-by: Lukas Fleischer --- web/template/tu_details.php | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) (limited to 'web/template/tu_details.php') diff --git a/web/template/tu_details.php b/web/template/tu_details.php index 4f291f01..61abab79 100644 --- a/web/template/tu_details.php +++ b/web/template/tu_details.php @@ -1,3 +1,12 @@ +

@@ -37,10 +46,10 @@ - - - - + + + + @@ -48,8 +57,8 @@ - 0): ?> - % + 0): ?> + % -- cgit v1.2.3-24-g4f1b