summaryrefslogtreecommitdiff
path: root/papillon/templates/vote.html
diff options
context:
space:
mode:
authorÉtienne Loks2011-10-25 00:53:14 +0200
committerÉtienne Loks2011-10-25 00:53:14 +0200
commit229e7616b16ee1f316b9a9ab5442631ff5033668 (patch)
tree11fea83203b9c90278e20d4fff45996c73923ce8 /papillon/templates/vote.html
parente41e52768085a81b1b5d48f5f0583b6449179fa8 (diff)
Limit comments by poll (closes #310)
Diffstat (limited to 'papillon/templates/vote.html')
-rw-r--r--papillon/templates/vote.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/papillon/templates/vote.html b/papillon/templates/vote.html
index dc384f5..5c20e5c 100644
--- a/papillon/templates/vote.html
+++ b/papillon/templates/vote.html
@@ -124,10 +124,10 @@
{%if hide_vote%}<p>{% trans "You have already vote? You are enough wise not to be influenced by other votes? You can display result by clicking" %} <a href='?display_result=1'>{% trans "here" %}</a>.</p>{%else%}
<p>{% trans "Remain informed of poll evolution:" %} <a href="../../feeds/poll/{{poll.base_url}}">{%trans "syndication"%}</a></p>{%endif%}
</div>
-{%if not hide_vote%}
-<h3>{%trans "Comments"%}</h3>
+{%if not hide_vote and max_comment_nb %}
+<h3>{%trans "Comments"%} ({% blocktrans %}{{max_comment_nb}} max{% endblocktrans %})</h3>
<div class='comments'>
- {%if poll.open%}<form method='post' action='.'>
+ {%if poll.open and max_comment_nb > poll.comments.count %}<form method='post' action='.'>
<table class='comment'>
<tr>
<td><label for='comment_author'>{% trans "Author name" %}</label></td>