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

{{ election.name }}

{% if settings.SHOW_USER_INFO %} {% trans "created by" %} {{election.admin.pretty_name}}{% endif %} {% if election.is_archived %} {% trans "[archived]" %}{% endif %} {% if admin_p %} {% if not election.frozen_at %} {% trans "edit" %} {% endif %} {% if election.is_archived %} {% trans "unarchive it" %} {% else %} {% trans "archive it" %} {% endif %} {%trans "copy" %} {% if not election.private_p %} {% endif %} {% endif %}
{% trans "Election URL:" %} {{election.url}}
{% trans "Election Fingerprint:" %} {{election.hash}}

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

{% if voter.vote_hash and election.voto_unico %} {% trans "Você já votou nessa eleição. " %} {% if election.use_voter_aliases %} {% trans "Your voter alias is " %}{{voter.alias}}. {% endif %} {% else %} {% trans "You are registered to vote in this " %}{{election.pretty_type}}. {% if election.use_voter_aliases %} {% trans "Your voter alias is " %}{{voter.alias}}. {% endif %} {% endif %}

{% else %} {% if election.result %} {% else %} {% if election.openreg %} {% if eligible_p %} {% trans "You are eligible to vote in this election." %} {% else %} {% trans "You are not eligible to vote in this" %} {{election.pretty_type}}. {% endif %} {% else %} {% trans "You are not eligible to vote in this" %} {{election.pretty_type}}.
{% endif %} {% endif %} {% endif %} {% else %} {% if election.openreg %} {% if election.eligibility %} {% trans "This election is open to:" %} {% trans "Any user with credentials" %} {% else %} {% trans "Anyone can vote in this election." %} {% endif %} {% endif %} {% endif %}
{{election.description_bleached|safe}}
{% if election.election_info_url %}

[download candidate bios & statements]

{% endif %}
{% if admin_p %} {% if election.frozen_p %}
Embed an Election Badge
{% endif %}

{% if election.result_released_at %} {% else %} {% trans "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 %}, {% trans "and" %}{% endif %} {% endfor %} {% else %} {% trans "freeze ballot and open election." %}

{% if election.voting_starts_at %} {% blocktrans with voting_starts_at=election.voting_starts_at|date:"d/m/Y H:i:s"%} once you do this, the election will be ready for voting and will open automatically
at {{voting_starts_at}}, as per your settings. {% endblocktrans %} {% else %} {% trans "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 %} {% blocktrans %} Tally computation is under way.
Reload this page in a couple of minutes. {% endblocktrans %} {% else %} {%blocktrans %} 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. {% endblocktrans %} {% endif %} {% else %} {% if election.result %} {% trans "release result" %}
{% blocktrans %} The result displayed below is visible only to you.
Once you release the result, it will be visible to everyone. {% endblocktrans %} {% else %} {% if election.ready_for_decryption_combination %} {% if election.num_trustees == 1 %} {% trans "compute results" %} {% else %} {% trans "combine trustee decryptions and compute results" %} {% endif %}
{% if election.num_trustees == 1 %} {% trans "The result will be computed and shown to you, the administrator, only." %} {% else %} {% blocktrans %} 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. {% endblocktrans %} {% endif %} {% else %} {% trans "trustees (for decryption)" %} {% endif %} {% endif %} {% endif %} {% endif %}
{% endif %}

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


{% endif %}

{% trans "Tally" %}

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

{% for answer in question.answers %} {% endfor %}
{{answer.answer}}{{answer.count}}
{% endfor %} {% else %} {% if election.voting_has_stopped %} {% trans "Election closed. Results will be released soon." %}

{% else %} {% if election.voting_has_started %} {% if eligible_p %} {% if voter.vote_hash and election.voto_unico %} {% else %} {% trans "Vote in this" %} {{election.pretty_type}} {% endif %} {% endif %}
{% if election.private_p and voter %}
{% blocktrans %} This election is private. You are signed in as eligible voter: {{ voter }}. {% endblocktrans %} {% endif %}

{% else %} {% if eligible_p %} {% trans "voting is not yet open" %}

{% endif %} {% endif %} {% endif %} {% endif %}
{% if election.voting_has_stopped %}

{% if election.result %} {% trans "verify" %} {% trans "election tally" %}. {% endif %} {% trans "review the" %} {% trans "voting booth" %} ({% trans "review purposes only" %}).

{% endif %}
{% trans "Election scheduling info" %}
{% if election.voting_starts_at %} {% blocktrans with voting_starts_at=election.voting_starts_at|date:"d/m/Y H:i"%} Election begin: {{voting_starts_at}} {% endblocktrans %} {% endif %}
{% if election.voting_ends_at %} {% blocktrans with voting_starts_at=election.voting_ends_at|date:"d/m/Y H:i"%} Election end: {{voting_starts_at}} {% endblocktrans %} {% else %} {% trans "This {{election.election_type}} ends at the administrator's discretion." %} {% endif %}
{% if election.voting_extended_until %} {% blocktrans with pretty_type=election.pretty_type|title voting_ends_at=election.voting_ends_at|date:"d/m/Y H:i" voting_extended_until=election.voting_extended_until|date:"d/m/Y H:i" %} This {{pretty_type}} was initially scheduled to end at {{voting_ends_at}}, but has been extended until {{ voting_extended_until }}. {% endblocktrans %} {% endif %}
{% if admin_p and election.voting_ends_at and not election.tallying_started_at %} {% trans "extend voting" %}
{% endif %}

{% if election.use_advanced_audit_features %}
{% trans "Audit Info" %}
{% endif %} {% endblock %}