mirror of
https://github.com/ae-utbm/sith.git
synced 2024-11-22 06:03:20 +00:00
Really display results when election is finished.
This commit is contained in:
parent
64f5fef89f
commit
da77c18871
@ -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 {
|
|||||||
</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>
|
||||||
|
Loading…
Reference in New Issue
Block a user