From 47eadddd01601b083c83b3520568255fdd6378a1 Mon Sep 17 00:00:00 2001 From: Benjamin Kellermann Date: Sat, 21 Nov 2009 09:00:58 +0100 Subject: show table name as h1 in every page --- access_control.rb | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) (limited to 'access_control.rb') 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 << < -

Change Access Control Settings

-
- - - - +

#{POLL}

+

Change Access Control Settings

+ +
Access toUsernamePasswordPassword (repeat)
+ + + ACL acusers.each{|user,action| $html << <
Access toUsernamePasswordPassword (repeat)