From da77c188710267d6263e340faa900f7ba8f4eb42 Mon Sep 17 00:00:00 2001 From: Jean-Baptiste Lenglet Date: Fri, 23 Dec 2016 22:00:06 +0100 Subject: [PATCH] Really display results when election is finished. --- election/templates/election/election_detail.jinja | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/election/templates/election/election_detail.jinja b/election/templates/election/election_detail.jinja index 2f9f1256..34f21dfb 100644 --- a/election/templates/election/election_detail.jinja +++ b/election/templates/election/election_detail.jinja @@ -292,10 +292,10 @@ th { {%- set _ = count.append(count.pop() + 1) %} {%- endif %} - {%- if not election.is_vote_finished %} + {%- if election.is_vote_finished %} {%- set results = election_results[role.title]['blank vote'] %}
- {{results.vote}} {% trans %}votes{% endtrans %} ( {{results.percent}} %) + {{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)
{%- endif %} @@ -322,10 +322,10 @@ th { {%- set _ = count.append(count.pop() + 1) %} {%- endif %} - {%- if not election.is_vote_finished %} + {%- if election.is_vote_finished %} {%- set results = election_results[role.title][candidature.user.username] %}
- {{results.vote}} {% trans %}votes{% endtrans %} ( {{results.percent}} %) + {{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)
{%- endif %}