aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xindex.cgi2
-rwxr-xr-xparticipate.rb27
2 files changed, 3 insertions, 26 deletions
diff --git a/index.cgi b/index.cgi
index bed6fe2..b67d0b5 100755
--- a/index.cgi
+++ b/index.cgi
@@ -64,7 +64,7 @@ if $cgi.include?("create_poll")
}
Poll.new(SITE,$cgi["poll_type"])
Dir.chdir("..")
- escapedsite = SITEURL + CGI.escapeHTML(CGI.escape(SITE)) + "/"
+ escapedsite = SITEURL + CGI.escapeHTML(CGI.escape(SITE)) + "/edit_columns.cgi"
escapedsite.gsub!("+"," ")
$html.header["status"] = "REDIRECT"
$html.header["Location"] = escapedsite
diff --git a/participate.rb b/participate.rb
index 50150b6..6efca03 100755
--- a/participate.rb
+++ b/participate.rb
@@ -72,29 +72,7 @@ $html << <<HEAD
HEAD
# TABLE
-if VCS.revno == 1
- $html << <<HINT
-<h1>#{table.name}</h1>
-<pre id='configwarning'>
- .
- .:;:.
-.:;;;;;:.
- ;;;;;
- ;;;;;
- ;;;;;
- ;;;;; Please configure this poll
- ;:;;; within the config tab!
- ;;; :
- ;:;
- ;.: .
- : .
- . .
-
- .
-</pre>
-HINT
-else
- $html << <<TABLE
+$html << <<TABLE
<h1>#{table.name}</h1>
<div id='polltable'>
<form method='post' action='.'>
@@ -103,8 +81,7 @@ else
</div>
TABLE
- $html << table.comment_to_html
-end
+$html << table.comment_to_html
$html << "</div></body>"