Mercurial > public > sg101
comparison gpp/templates/polls/index.html @ 1:dbd703f7d63a
Initial import of sg101 stuff from private repository.
author | gremmie |
---|---|
date | Mon, 06 Apr 2009 02:43:12 +0000 |
parents | |
children | ac9217eef610 |
comparison
equal
deleted
inserted
replaced
0:900ba3c7b765 | 1:dbd703f7d63a |
---|---|
1 {% extends 'base.html' %} | |
2 {% load comment_tags %} | |
3 {% block title %}Polls{% endblock %} | |
4 {% block content %} | |
5 <h2>Polls</h2> | |
6 <h3>Current Polls</h3> | |
7 {% if current_polls %} | |
8 <ul> | |
9 {% for poll in current_polls %} | |
10 <li><a href="{{ poll.get_absolute_url }}">{{ poll.question }}</a> • | |
11 {% get_comment_count for poll as comment_count %} | |
12 {{ comment_count }} comment{{ comment_count|pluralize }} • | |
13 {{ poll.start_date|date:"M d, Y" }} | |
14 {% if poll.end_date %} | |
15 - {{ poll.end_date|date:"M d, Y" }} | |
16 {% endif %} | |
17 </li> | |
18 {% endfor %} | |
19 </ul> | |
20 {% else %} | |
21 <p>No open polls at this time.</p> | |
22 {% endif %} | |
23 <h3>Closed Polls</h3> | |
24 {% if old_polls %} | |
25 <ul> | |
26 {% for poll in old_polls %} | |
27 <li><a href="{{ poll.get_absolute_url }}">{{ poll.question }}</a> • | |
28 {% get_comment_count for poll as comment_count %} | |
29 {{ comment_count }} comment{{ comment_count|pluralize }} • | |
30 {{ poll.start_date|date:"M d, Y" }} - | |
31 {{ poll.end_date|date:"M d, Y" }}</li> | |
32 {% endfor %} | |
33 </ul> | |
34 {% else %} | |
35 <p>No closed polls at this time.</p> | |
36 {% endif %} | |
37 {% endblock %} |