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,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>
|
||||
|
Loading…
Reference in New Issue
Block a user