aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-09-22 14:10:48 +0200
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2010-09-22 14:10:48 +0200
commitcc5025b06013380fe07adecab5ca670b75eb690f (patch)
tree66e4ce495b91883663c5b3e8611d4b1ca8726476 /index.cgi
parentf20c638c9e25b3da22fd8125c13a6b5ca3a8a9a2 (diff)
better approach to example polls (generate a new one for every user)
Diffstat (limited to 'index.cgi')
-rwxr-xr-xindex.cgi5
1 files changed, 3 insertions, 2 deletions
diff --git a/index.cgi b/index.cgi
index 59d24bd..99620a9 100755
--- a/index.cgi
+++ b/index.cgi
@@ -136,8 +136,9 @@ CREATE
$d << "<div class='textcolumn'><h2>" + _("Examples") + "</h2>"
$d << _("If you want to play around with the Tool, you may want to take a look at these Example Polls:")
$d << "<ul>"
- $d << "<li><a href='#{EXAMPLES["event_schedule_example"]}'>" + _("Event Schedule Poll") + "</a></li>" if EXAMPLES["event_schedule_example"]
- $d << "<li><a href='#{EXAMPLES["normal_example"]}'>" + _("Normal Poll") + "</a></li>" if EXAMPLES["normal_example"]
+ EXAMPLES.each{|poll|
+ $d << "<li><a href='example.cgi?poll=#{poll[:url]}'>#{poll[:description]}</a></li>" unless poll[:hidden]
+ }
$d << "</ul></div>"
end