{% 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 %}

{% if election.private_p %}private{%else%}public{% endif %} {{ election.election_type }} created by {{election.admin.display_html_small|safe}} {% if election.is_archived %} [archived] {% endif %} {% if admin_p %}  [{% if election.is_archived %}unarchive it{% else %}archive it{% endif %}] {% endif %}
{% if admin_p %} {% if election.featured_p %} this {{election.election_type}} is featured on the front page. {% if can_feature_p %} [unfeature it] {% endif %} {% else %} this {{election.election_type}} 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 %} {% if election.num_trustees == 1 %} release results {% else %} combine trustee decryptions and release results {% endif %}
{% 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.
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 %} trustees (for decryption) {% endif %} {% endif %} {% endif %}
{% endif %}

{% endif %}

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

Tally

{% for question in election.pretty_result %} Question #{{forloop.counter}}
{{question.question}}

{% for answer in question.answers %} {% endfor %}
{{answer.answer}}{{answer.count}}
{% endfor %} {% else %} {% if election.voting_has_stopped %} Election closed. Tally will be computed soon.
{% else %} {% if election.voting_has_started %} Vote in this {{election.election_type}}
{% 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.election_type}} was initially scheduled to end at {{election.voting_ends_at}} (UTC),
but has been extended until {{ election.voting_extended_until }} (UTC). {% else %} {% if election.voting_ends_at %}
This {{election.election_type}} is scheduled to end at {{election.voting_ends_at}} (UTC). {% else %}
This {{election.election_type}} 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.election_type}}. {% 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.election_type}} is open to anyone. {% else %} You are not registered to vote in this {{election.election_type}}.
{% endif %} {% else %} Registration for this {{election.election_type}} is open, but You are not eligible. {% endif %} {% else %} You are not eligible to vote in this {{election.election_type}}, because registration is closed and you are not registered.
{% endif %} {% endif %} {% endif %} {% else %} {% endif %} {% endif %} {% endif %}
Audit Info
{% endblock %}