{% if poll.is_expired %}
This poll is now closed
{% endif %}

{{ poll.question }}

{% if has_voted %} You have already voted. See the results. {% else %} {% if not poll.is_expired %}
{% endif %} {% for choice in poll.pollchoice_set.all %}
{% endfor %} {% if poll.is_expired %}

This poll is now closed.See the results.

{% else %} {% if must_login_to_vote %}

You must be logged in to vote!

{% else %}

{% endif %} {% endif %} {% if not poll.is_expired %}
{% endif %} {% endif %}