gremmie@1: {% extends 'base.html' %}
gremmie@1: {% load comment_tags %}
gremmie@1: {% block title %}Polls{% endblock %}
gremmie@1: {% block content %}
gremmie@1:
Polls
gremmie@1: Current Polls
gremmie@1: {% if current_polls %}
gremmie@1:
gremmie@1: {% for poll in current_polls %}
gremmie@1: - {{ poll.question }} •
gremmie@1: {% get_comment_count for poll as comment_count %}
gremmie@1: {{ comment_count }} comment{{ comment_count|pluralize }} •
gremmie@1: {{ poll.start_date|date:"M d, Y" }}
gremmie@1: {% if poll.end_date %}
gremmie@1: - {{ poll.end_date|date:"M d, Y" }}
gremmie@1: {% endif %}
gremmie@1:
gremmie@1: {% endfor %}
gremmie@1:
gremmie@1: {% else %}
gremmie@1: No open polls at this time.
gremmie@1: {% endif %}
gremmie@1: Closed Polls
gremmie@1: {% if old_polls %}
gremmie@1:
gremmie@1: {% for poll in old_polls %}
gremmie@1: - {{ poll.question }} •
gremmie@1: {% get_comment_count for poll as comment_count %}
gremmie@1: {{ comment_count }} comment{{ comment_count|pluralize }} •
gremmie@1: {{ poll.start_date|date:"M d, Y" }} -
gremmie@1: {{ poll.end_date|date:"M d, Y" }}
gremmie@1: {% endfor %}
gremmie@1:
gremmie@1: {% else %}
gremmie@1: No closed polls at this time.
gremmie@1: {% endif %}
gremmie@1: {% endblock %}