Really display results when election is finished.

This commit is contained in:
Jean-Baptiste Lenglet 2016-12-23 22:00:06 +01:00 committed by klmp200
parent 64f5fef89f
commit da77c18871

View File

@ -292,7 +292,7 @@ th {
</label>
{%- 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'] %}
<div class="election__results">
<strong>{{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)</strong>
@ -322,7 +322,7 @@ th {
</label>
{%- 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] %}
<div class="election__results">
<strong>{{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)</strong>