{% extends 'base.html' %} {% block content %}
{% if messages %}
{% for message in messages %}
{{ message }}
{% endfor %}
{% else %}
{% if poll.active %}

Result for: {{ poll.text }}

{% else %}

"{{ poll.text }}" Has Ended Polling!

{% endif %}

Total: {{ poll.get_vote_count }} votes

{% for choice in poll.get_result_dict %}
{{choice.text|truncatewords:2}}-{{choice.percentage|floatformat}}%
{% endfor %}
    {% for choice in poll.choice_set.all %}
  • {{ choice.choice_text }} {{ choice.get_vote_count }}
  • {% endfor %}
{% endif %} Back To Polls
{% endblock content %}