aboutsummaryrefslogtreecommitdiff
path: root/index.cgi
diff options
context:
space:
mode:
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