aboutsummaryrefslogtreecommitdiff
path: root/poll.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-05-03 09:45:59 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-05-03 09:45:59 +0200
commitd867286b8fbb87f0f70c0afc1c72a2c3b19e1e45 (patch)
tree41146fdf5d5432aa10bd59c7ed7f261e0050949b /poll.rb
parentb37d651891a3b44d7307db950b44f502ca45520e (diff)
show comment-headline only when needed
Diffstat (limited to 'poll.rb')
-rw-r--r--poll.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/poll.rb b/poll.rb
index 126c72a..95e7e29 100644
--- a/poll.rb
+++ b/poll.rb
@@ -251,7 +251,7 @@ TR
def comment_to_html(editable = true)
ret = "<div id='comments'>"
- ret += "<h2>" + _("Comments") + "</h2>"
+ ret += "<h2>" + _("Comments") + "</h2>" if !@comment.empty? || editable
unless @comment.empty?
@comment.each_with_index{|c,i|