Skip to content
Snippets Groups Projects
Commit fae09b49 authored by Ben Adida's avatar Ben Adida
Browse files

simplified language for single-trustee elections

parent 81d4b6e2
No related branches found
No related tags found
No related merge requests found
......@@ -141,6 +141,10 @@ class Election(HeliosModel):
def num_voters(self):
return self.voter_set.count()
@property
def num_trustees(self):
return self.trustee_set.count()
@property
def last_alias_num(self):
"""
......
......@@ -109,10 +109,20 @@ trustees will be asked to provide their share of the decryption.
{% else %}
{% if election.ready_for_decryption_combination %}
<a href="{% url helios.views.combine_decryptions election.uuid %}">combine trustee decryptions and release results</a><br />
<a href="{% url helios.views.combine_decryptions election.uuid %}">
{% if election.num_trustees == 1 %}
release results
{% else %}
combine trustee decryptions and release results
{% endif %}
</a><br />
{% if election.num_trustees == 1 %}
The result is released and all voters are notified.
{% else %}
The decryption shares from the trustees are combined and the tally is decrypted.<br />
Once you do this, the tally will be immediately available for all to see, and
all voters will be notified that the tally is ready.
{% endif %}
{% else %}
<a href="{% url helios.views.list_trustees_view election.uuid %}">trustees (for decryption)</a>
{% endif %}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment