aboutsummaryrefslogtreecommitdiff
path: root/overview.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-14 14:14:29 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-14 14:14:29 +0100
commit69eea2c4ff347a623a582d4099511db766faba42 (patch)
tree20968e7b580b8234a4575070558649c081583ca4 /overview.rb
parentf2748fba35edfb42a03068afcc3dc1305109fcc3 (diff)
provide complete wizzard style
Diffstat (limited to 'overview.rb')
-rwxr-xr-xoverview.rb44
1 files changed, 44 insertions, 0 deletions
diff --git a/overview.rb b/overview.rb
new file mode 100755
index 0000000..3355ae3
--- /dev/null
+++ b/overview.rb
@@ -0,0 +1,44 @@
+#!/usr/bin/env ruby
+
+############################################################################
+# Copyright 2009 Benjamin Kellermann #
+# #
+# This file is part of dudle. #
+# #
+# Dudle is free software: you can redistribute it and/or modify it under #
+# the terms of the GNU Affero General Public License as published by #
+# the Free Software Foundation, either version 3 of the License, or #
+# (at your option) any later version. #
+# #
+# Dudle is distributed in the hope that it will be useful, but WITHOUT ANY #
+# WARRANTY; without even the implied warranty of MERCHANTABILITY or #
+# FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public #
+# License for more details. #
+# #
+# You should have received a copy of the GNU Affero General Public License #
+# along with dudle. If not, see <http://www.gnu.org/licenses/>. #
+############################################################################
+
+if __FILE__ == $0
+
+load "../dudle.rb"
+
+$d = Dudle.new("Overview")
+
+$d.wizzard_redirect
+
+$d << <<END
+The link to your poll is:
+<pre>#{SITEURL}</pre>
+<a href='mailto:?subject=link%20to%20dudle%20poll%20about%20#{CGI.escapeHTML(CGI.escape($d.title).gsub("+","%20"))}&amp;body=#{SITEURL}'>Send this link via email...</a>
+<form method='get' action='.'>
+ <div style='margin-top:1ex'>
+ <input type='submit' value='To the Vote interface' />
+ </div>
+</form>
+END
+
+$d.out
+end
+
+