aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-xaccess_control.rb16
-rwxr-xr-xdelete_poll.rb5
-rwxr-xr-xedit_columns.rb5
-rwxr-xr-xhistory.rb2
4 files changed, 16 insertions, 12 deletions
diff --git a/access_control.rb b/access_control.rb
index 7143f8c..4fffec9 100755
--- a/access_control.rb
+++ b/access_control.rb
@@ -105,7 +105,8 @@ if $cgi.include?("ac_user")
end
end
-$html = HTML.new("dudle - Access Control Settings")
+POLL = File.basename(File.expand_path("."))
+$html = HTML.new("dudle - #{POLL} - Access Control Settings")
$html.header["Cache-Control"] = "no-cache"
load "../charset.rb"
$html.add_css("../dudle.css")
@@ -121,12 +122,13 @@ TABLE
$accesslevels = { "vote" => "Vote Interface", "config" => "Config Interface" }
$html << <<ACL
<div id='access_control'>
- <h1>Change Access Control Settings</h1>
- <form method='post' action=''>
- <table>
- <tr>
- <th>Access to</th><th>Username</th><th>Password</th><th>Password (repeat)</th>
- </tr>
+ <h1>#{POLL}</h1>
+ <h2>Change Access Control Settings</h2>
+ <form method='post' action=''>
+ <table>
+ <tr>
+ <th>Access to</th><th>Username</th><th>Password</th><th>Password (repeat)</th>
+ </tr>
ACL
acusers.each{|user,action|
$html << <<USER
diff --git a/delete_poll.rb b/delete_poll.rb
index 8ae79b7..db04eb0 100755
--- a/delete_poll.rb
+++ b/delete_poll.rb
@@ -34,7 +34,7 @@ if __FILE__ == $0
POLL = File.basename(File.expand_path("."))
$cgi = CGI.new
load "../html.rb"
-$html = HTML.new("dudle - Delete - #{POLL}")
+$html = HTML.new("dudle - #{POLL} - Delete")
$html.header["Cache-Control"] = "no-cache"
@@ -67,7 +67,8 @@ else
$html << <<TABLE
<div>
- <h1>Delete this Poll</h1>
+ <h1>#{POLL}</h1>
+ <h2>Delete this Poll</h2>
You want to delete the poll named <b>#{POLL}</b>.<br />
This is an irreversible action!<br />
If you are sure in what you are doing, please type into the form “#{QUESTIONS[CONFIRM]}”
diff --git a/edit_columns.rb b/edit_columns.rb
index 8d2dc4a..0b58fcc 100755
--- a/edit_columns.rb
+++ b/edit_columns.rb
@@ -62,7 +62,7 @@ else
end
-$html = HTML.new("dudle - Edit Columns - #{table.name}")
+$html = HTML.new("dudle - #{table.name} - Edit Columns")
$html.header["Cache-Control"] = "no-cache"
load "../charset.rb"
$html.add_css("../dudle.css")
@@ -72,7 +72,8 @@ $html << Dudle::tabs("Edit Columns")
$html << <<TABLE
<div id='main'>
- <h1>Add and Remove Columns</h1>
+ <h1>#{table.name}</h1>
+ <h2>Add and Remove Columns</h2>
TABLE
# ADD/REMOVE COLUMN
diff --git a/history.rb b/history.rb
index 1d438c6..34daa63 100755
--- a/history.rb
+++ b/history.rb
@@ -50,7 +50,7 @@ $html << Dudle::tabs("History")
$html << <<TABLE
<div id='main'>
- <h1>History of #{table.name}</h1>
+ <h1>#{table.name}</h1>
TABLE