{{ poll.question }}
{% if can_vote and not editing and not user_vote_ids %}
{{ form.hidden_tag() }} {% for option in poll.options %}
{% endfor %}
{% else %}
    {% for option in poll.options %} {% set percentage = (100 * option.vote_count / poll.total_votes) if poll.total_votes else 0 %}
  • {{ option.text }} {{ "%.0f"|format(percentage) }}% ({{ option.vote_count }})
  • {% endfor %}
{% if editing %} {{ _("This poll cannot be changed here.") }} {% else %} {{ _("%(count)s total votes", count=poll.total_votes) }} {% if not can_vote %} · {{ _("Log in to vote.") }}{% endif %} {% endif %} {% endif %} {% if can_delete %}
{{ delete_form.hidden_tag() }}
{% endif %}