aboutsummaryrefslogtreecommitdiff
path: root/access_control.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-21 09:00:58 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-21 09:00:58 +0100
commit47eadddd01601b083c83b3520568255fdd6378a1 (patch)
tree4ab934c2401b8eafce5fb5841df2787e5fa8df7d /access_control.rb
parentccb649b03181010d19e673e1bf75bb62e6b54cc0 (diff)
show table name as h1 in every page
Diffstat (limited to 'access_control.rb')
-rwxr-xr-xaccess_control.rb16
1 files changed, 9 insertions, 7 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