{% extends TEMPLATE_BASE %} {% block title %}{{election.name}}{% endblock %} {% block content %} {% if election.voting_has_started %} {% endif %}

{{ election.name }} {% if admin_p %} {% if not election.frozen_at %} edit {% endif %} {% endif %}

an election created by {{election.admin.display_html_small|safe}}
{% if admin_p %} {% if election.featured_p %} this election is featured on the front page. {% if can_feature_p %} [unfeature it] {% endif %} {% else %} this election is not featured on the front page. {% if can_feature_p %} [feature it] {% endif %} {% endif %} {% endif %}



{% if socialbuttons_url %} {% endif %}
{{election.description}}

questions ({% if election.questions %}{{election.questions|length}}{% else %}0{% endif %})   |   voters & ballots   |   trustees ({{trustees|length}})

{% if admin_p %}

{% if election.result %} {% else %} Next Step: {% if not election.frozen_at %} {% if election.issues_before_freeze %} add questions, voters, and trustees. {% else %} freeze ballot and open election.
{% if election.voting_starts_at %} once you do this, the election will be ready for voting and will open automatically
at {{election.voting_starts_at}}, as per your settings. {% else %} once you do this, the election will be immediately open for voting. {% endif %} {% endif %} {% else %} {% if not election.encrypted_tally %} {% if election.tallying_started_at %} Tally computation is under way.
Reload this page in a couple of minutes. {% else %} compute encrypted tally
The encrypted votes will be combined into an encrypted tally. Once this is done,
trustees will be asked to provide their share of the decryption. {% endif %} {% else %} {% if election.ready_for_decryption_combination %} combine trustee decryptions and release results
The decryption shares from the trustees are combined and the tally is decrypted.
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. {% else %} trustees (for decryption) {% endif %} {% endif %} {% endif %}
{% endif %}

{% endif %}

{% if election.result %} This election is complete.

Tally

{% for question in election.pretty_result %} {{question.question}}: {% endfor %} {% else %} {% if election.voting_has_stopped %} Election closed. Tally will be computed soon.
{% else %} {% if election.voting_has_started %} Vote in this election
{% if not user %}


For your privacy, you'll be asked to log in only once your ballot is encrypted. {% endif %} {% if election.voting_extended_until %}
This election was initially scheduled to end at {{election.voting_ends_at}},
but has been extended until {{ election.voting_extended_until }}. {% else %} {% if election.voting_ends_at %}
This election is scheduled to end at {{election.voting_ends_at}}. {% else %}
This election ends at the administrator's discretion. {% endif %}
{% endif %}
{% else %} voting is not yet open

{% endif %} {% if user %} {% if voter %}

You are registered to vote in this election. {% if election.use_voter_aliases %} Your voter alias is {{voter.alias}}. {% endif %}

{% else %} {% if election.result %} {% else %} {% if election.openreg %} {% if eligible_p %} {% if election.voting_has_started %} This election is open to anyone. {% else %} You are not registered to vote in this election.
{% endif %} {% else %} Registration for this election is open, but You are not eligible. {% endif %} {% else %} You are not eligible to vote in this election, because registration is closed and you are not registered.
{% endif %} {% endif %} {% endif %} {% else %} {% endif %} {% endif %} {% endif %}
Audit Info
{% endblock %}