aboutsummaryrefslogtreecommitdiff
path: root/config_sample.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-24 13:21:19 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-24 13:21:19 +0100
commitac9af6eb4f37e1e832923d7a490c64fafad760bf (patch)
tree8c609dd16a91ad7ee55d22798cda225abf60c2f4 /config_sample.rb
parent846bf560005140babb11b1ed4dd03e0d16424137 (diff)
remove fieldsets from startpage
Diffstat (limited to 'config_sample.rb')
-rw-r--r--config_sample.rb12
1 files changed, 7 insertions, 5 deletions
diff --git a/config_sample.rb b/config_sample.rb
index 371db2a..e53c2a8 100644
--- a/config_sample.rb
+++ b/config_sample.rb
@@ -26,8 +26,11 @@ SITEURL = "http://#{$cgi.server_name}#{$cgi.script_name.gsub(/[^\/]*$/,"")}"
# add the htmlcode in the Variable NOTICE to the startpage
# Example 1: displays all available Polls
notice = <<NOTICE
-<fieldset><legend>Available Polls</legend>
-<table><tr><th>Poll</th><th>Last change</th></tr>
+<h2>Available Polls</h2>
+<table summary='Available Polls'>
+ <tr>
+ <th>Poll</th><th>Last change</th>
+ </tr>
NOTICE
Dir.glob("*/data.yaml").sort_by{|f|
File.new(f).mtime
@@ -39,14 +42,13 @@ Dir.glob("*/data.yaml").sort_by{|f|
</tr>
NOTICE
}
-notice += "</table></fieldset>"
+notice += "</table>"
# Example 2: displays a static text
notice += <<NOTICE
-<fieldset><legend>Examples</legend>
+<h2>Examples</h2>
If you want to play around with the Tool, you may want to take a look at these two Example Polls:<br />
<a href='EventScheduleExample'>Event Schedule Poll</a><br />
<a href='NormalExample'>Normal Poll</a>
-</fieldset>
NOTICE
NOTICE = notice