{% 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 not election.private_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 %} {% 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.frozen_p %}
Embed an Election Badge
{% endif %}

{% if election.result %} {% else %} Next Step: {% if not election.frozen_at %} {% if election.issues_before_freeze %} {% for issue in election.issues_before_freeze %} {{issue.action}}{% if forloop.last %}{% else %}, and{% endif %}
{% endfor %} {% 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 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 %} {% if election.private_p and voter %}
This election is private. You are signed in as eligible voter {{voter.name}}. {% 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 %} You are eligible to vote in this election. {% else %} You are not eligible to vote in this {{election.election_type}}. {% endif %} {% else %} You are not eligible to vote in this {{election.election_type}}.
{% endif %} {% endif %} {% endif %} {% else %} {% if election.openreg %} {% if election.eligibility %} This election is open to: {{election.pretty_eligibility|safe}} Log in to check your eligibility. {% else %} Anyone can vote in this election. {% endif %} {% endif %} {% endif %} {% endif %} {% endif %}
Audit Info
{% endblock %}