diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-21 09:00:58 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-21 09:00:58 +0100 |
commit | 47eadddd01601b083c83b3520568255fdd6378a1 (patch) | |
tree | 4ab934c2401b8eafce5fb5841df2787e5fa8df7d | |
parent | ccb649b03181010d19e673e1bf75bb62e6b54cc0 (diff) |
show table name as h1 in every page
Diffstat (limited to '')
-rwxr-xr-x | access_control.rb | 16 | ||||
-rwxr-xr-x | delete_poll.rb | 5 | ||||
-rwxr-xr-x | edit_columns.rb | 5 | ||||
-rwxr-xr-x | history.rb | 2 |
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 @@ -50,7 +50,7 @@ $html << Dudle::tabs("History") $html << <<TABLE <div id='main'> - <h1>History of #{table.name}</h1> + <h1>#{table.name}</h1> TABLE |