diff options
-rw-r--r-- | poll.rb | 28 |
1 files changed, 27 insertions, 1 deletions
@@ -64,6 +64,32 @@ EDITDELETE ret end def to_html(config = false,activecolumn = nil) + if VCS.revno == 1 && !config + return <<HINT +<pre + style="font-family:Courier New,Courier,monospace; + letter-spacing:0; + margin-top: -8ex; + line-height:95%;" +> + . + .:;:. +.:;;;;;:. + ;;;;; + ;;;;; + ;;;;; + ;;;;; Please press the config link on + ;:;;; the top left corner of this page + ;;; : to configure this poll! + ;:; + ;.: . + : . + . . + + . +</pre> +HINT + end ret = "<table border='1'>\n" ret += head_to_html(config, activecolumn) @@ -75,7 +101,7 @@ EDITDELETE ret += "</td>\n" @head.sort.each{|columntitle,columndescription| klasse = poll[columntitle] - case klasse + case klasse when nil value = UNKNOWN klasse = "undecided" |