summaryrefslogtreecommitdiff
path: root/papillon/templates/main.html
diff options
context:
space:
mode:
authorÉtienne Loks2011-10-25 01:13:25 +0200
committerÉtienne Loks2011-10-25 01:13:25 +0200
commit023f8571e1386a08e25d779252c221ca939d1f1d (patch)
treefb438eab21ff42eb026201cb130b77898d2ddf90 /papillon/templates/main.html
parent229e7616b16ee1f316b9a9ab5442631ff5033668 (diff)
Allow disabling frontpage polls (closes #311)
Diffstat (limited to 'papillon/templates/main.html')
-rw-r--r--papillon/templates/main.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/papillon/templates/main.html b/papillon/templates/main.html
index f27a97b..696ab47 100644
--- a/papillon/templates/main.html
+++ b/papillon/templates/main.html
@@ -6,6 +6,7 @@
<h2><a href='{% url create%}'>{%trans "Create a poll"%}</a></h2>
<p>{% trans "Create a new sondage for take a decision, find a date for a meeting, etc." %} <a href='create'>{% trans "It's here!" %}</a></p>
+{% if public %}
{% if polls %}<h2>{%trans "Public polls"%}</h2>{%endif%}
{% for poll in polls %}
<div class='poll-description'>
@@ -18,5 +19,5 @@
{% for category in categories %}
<h3><a href='{% url category category.id%}'>{{category.name}}</a></h3>
{% endfor %}
-
+{% endif %}
{% endblock %}