summaryrefslogtreecommitdiffstats
path: root/templates/polls/poll_list.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/polls/poll_list.html')
-rwxr-xr-xtemplates/polls/poll_list.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/polls/poll_list.html b/templates/polls/poll_list.html
new file mode 100755
index 0000000..2888cf2
--- /dev/null
+++ b/templates/polls/poll_list.html
@@ -0,0 +1,14 @@
+{% extends 'polls/base.html' %}
+
+{% block content %}
+{% if object_list %}
+ <ul>
+ {% for object in object_list %}
+ <li>{{ object.question }} {{ object.all }}</li>
+ {% endfor %}
+ </ul>
+{% else %}
+ <p>No polls are available.</p>
+{% endif %}
+ {% endblock %}
+