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

Really display results when election is finished.

parent 64f5fef8
...@@ -292,10 +292,10 @@ th { ...@@ -292,10 +292,10 @@ th {
</label> </label>
{%- set _ = count.append(count.pop() + 1) %} {%- set _ = count.append(count.pop() + 1) %}
{%- endif %} {%- endif %}
{%- if not election.is_vote_finished %} {%- if election.is_vote_finished %}
{%- set results = election_results[role.title]['blank vote'] %} {%- set results = election_results[role.title]['blank vote'] %}
<div class="election__results"> <div class="election__results">
<strong>{{results.vote}} {% trans %}votes{% endtrans %} ( {{results.percent}} %)</strong> <strong>{{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)</strong>
</div> </div>
{%- endif %} {%- endif %}
</td> </td>
...@@ -322,10 +322,10 @@ th { ...@@ -322,10 +322,10 @@ th {
</label> </label>
{%- set _ = count.append(count.pop() + 1) %} {%- set _ = count.append(count.pop() + 1) %}
{%- endif %} {%- endif %}
{%- if not election.is_vote_finished %} {%- if election.is_vote_finished %}
{%- set results = election_results[role.title][candidature.user.username] %} {%- set results = election_results[role.title][candidature.user.username] %}
<div class="election__results"> <div class="election__results">
<strong>{{results.vote}} {% trans %}votes{% endtrans %} ( {{results.percent}} %)</strong> <strong>{{results.vote}} {% trans %}votes{% endtrans %} ({{results.percent}} %)</strong>
</div> </div>
{%- endif %} {%- endif %}
</li> </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