From 5aff0fbb822b6e3ae57f1826fcfb5edc7a251e1a Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Sat, 24 Oct 2009 18:40:40 +0200 Subject: do not show comments on unconfigured poll --- participate.rb | 33 ++++++++++++++++++++++++++++++--- 1 file changed, 30 insertions(+), 3 deletions(-) (limited to 'participate.rb') diff --git a/participate.rb b/participate.rb index 7d0550a..d828079 100755 --- a/participate.rb +++ b/participate.rb @@ -83,8 +83,34 @@ $htmlout += <#{table.name} + $htmlout += "

#{table.name}

" +if VCS.revno == 1 + $htmlout += < + . + .:;:. +.:;;;;;:. + ;;;;; + ;;;;; + ;;;;; + ;;;;; Please press the config link on + ;:;;; the top left corner of this page + ;;; : to configure this poll! + ;:; + ;.: . + : . + . . + + . + +HINT +else + $htmlout += < #{table.to_html($cgi['edituser'])} @@ -92,7 +118,8 @@ $htmlout += <
TABLE -$htmlout += table.comment_to_html + $htmlout += table.comment_to_html +end $htmlout += "" -- cgit v1.2.3