diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-25 14:26:23 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-25 14:26:23 +0100 |
commit | 262fafe05e878bda8f49ef3ee85599ba879bc9e2 (patch) | |
tree | 7c62a98901e4493280d372e0e352e3417df64a33 /config_sample.rb | |
parent | 230013298998885def4f427cc66fa1a435192bc0 (diff) |
exchange sample config text
Diffstat (limited to 'config_sample.rb')
-rw-r--r-- | config_sample.rb | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/config_sample.rb b/config_sample.rb index 0bcc420..4faf0f3 100644 --- a/config_sample.rb +++ b/config_sample.rb @@ -24,8 +24,25 @@ load "bzr.rb" 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 +# Example 1: displays a static text notice = <<NOTICE +<div> + <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='coffeebreak'>Event Schedule Poll</a><br /> + <a href='coffee'>Normal Poll</a> +</div> + +<div> + <h2>--verbose</h2> + Get the sourcecode with <a href="http://bazaar-vcs.org/">bazaar</a>: + <br /> + bzr branch #{SITEURL} dudle + <br /> +</div> +NOTICE +# Example 2: displays all available Polls +notice += <<NOTICE <h2>Available Polls</h2> <table summary='Available Polls'> <tr> @@ -43,21 +60,4 @@ Dir.glob("*/data.yaml").sort_by{|f| NOTICE } notice += "</table>" -# Example 2: displays a static text -notice += <<NOTICE -<div> - <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='coffeebreak'>Event Schedule Poll</a><br /> - <a href='coffee'>Normal Poll</a> -</div> - -<div> - <h2>--verbose</h2> - Get the sourcecode with <a href="http://bazaar-vcs.org/">bazaar</a>: - <br /> - bzr branch #{SITEURL} dudle - <br /> -</div> -NOTICE NOTICE = notice |