Commit da77c188 authored by Jean-Baptiste Lenglet's avatar Jean-Baptiste Lenglet Committed by Sli

Really display results when election is finished.

parent 64f5fef8
......@@ -292,10 +292,10 @@ 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>
<strong>{{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)</strong>
</div>
{%- endif %}
</td>
......@@ -322,10 +322,10 @@ 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>
<strong>{{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)</strong>
</div>
{%- endif %}
</li>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment