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

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

{% if election.private_p %}private{%else%}public{% endif %} {{ election.election_type }}{% if settings.SHOW_USER_INFO %} created by {{election.admin.display_html_small|safe}}{% endif %} {% if election.is_archived %} [archived] {% endif %} {% if admin_p %}  {% if election.is_archived %}unarchive it{% else %}archive it{% endif %} copy {% 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 %}



{{election.description_bleached|safe}}

{% if election.help_email and admin_p%}Help Email Address: {{election.help_email}}
{% endif %} {% if election.voting_start_at %}Voting start at {{election.voting_start_at}}
{% endif %} {% if election.voting_end_at %}Voting end at {{election.voting_end_at}}
{% endif %}

{% if election.election_info_url %}

[download candidate bios & statements]

{% endif %}

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_released_at %} {% 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.result %} release result
The result displayed below is visible only to you.
Once you release the result, it will be visible to everyone. {% else %} {% if election.ready_for_decryption_combination %} {% if election.num_trustees == 1 %} compute results {% else %} combine trustee decryptions and compute results {% endif %}
{% if election.num_trustees == 1 %} The result will be computed and shown to you, the administrator, only. {% else %} The decryption shares from the trustees will be combined and the tally computed.
Once you do this, the tally will visible to you, the administrator, only. {% endif %} {% else %} trustees (for decryption) {% endif %} {% endif %} {% endif %} {% endif %}
{% endif %}

{% endif %}
{% if show_result %} {% if election.result_released_at %} This election is complete.


{% endif %}

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. Results will be released 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 %} {% if admin_p and election.voting_ends_at and not election.tallying_started_at %}
extend voting
{% endif %}
Audit Info
{% endblock %}