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 +++++++++------- delete_poll.rb | 5 +++-- edit_columns.rb | 5 +++-- 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 << < -

Change Access Control Settings

-
- - - - +

#{POLL}

+

Change Access Control Settings

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

Delete this Poll

+

#{POLL}

+

Delete this Poll

You want to delete the poll named #{POLL}.
This is an irreversible action!
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 << <
Access toUsernamePasswordPassword (repeat)
-

Add and Remove Columns

+

#{table.name}

+

Add and Remove Columns

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 << <
-

History of #{table.name}

+

#{table.name}

TABLE -- cgit v1.2.3