{% load i18n %} {% load humanize %} {% load staticfiles %} {% load tags %}

{{ poll.assignment }}
{% trans "Election" %} {% if poll.get_ballot > 1 %}| {{ poll.get_ballot|ordinal|safe }} {% trans "ballot" %}{% endif %}

{% if poll.has_votes and poll.published %} {% for option in poll.get_options %} {% endfor %} {% if poll.votesvalid != None %} {% endif %} {% if poll.votesinvalid != None %} {% endif %} {% if poll.votescast != None %} {% endif %}
{{ option }} {% if not "assignment_publish_winner_results_only"|get_config or option.candidate in poll.assignment.elected %} {% if poll.yesnoabstain %} {% trans 'Yes' %}: {{ option.Yes }}
{% trans 'No' %}: {{ option.No }}
{% trans 'Abstention' %}: {{ option.Abstain }} {% else %} {{ option.Votes }} {% endif %} {% endif %}
{% trans 'Valid votes' %}: {{ poll.print_votesvalid }}
{% trans 'Invalid votes' %}: {{ poll.print_votesinvalid }}
{% trans 'Votes cast' %}: {{ poll.print_votescast }}
{% else %} {% trans "No result available." %} {% endif %}