aboutsummaryrefslogtreecommitdiff
path: root/history.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 13:58:45 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-20 13:58:45 +0100
commit803b626975e0bb8c02b6a887d43a21655f670f90 (patch)
treee55dfbbe64a90c129e3556afb0c9dadede5d73c3 /history.rb
parent393b80ed66f10a7670d1022361b063fe0118e746 (diff)
made history tab usefull
Diffstat (limited to '')
-rwxr-xr-xhistory.rb15
1 files changed, 12 insertions, 3 deletions
diff --git a/history.rb b/history.rb
index 5a10a68..e49f2e2 100755
--- a/history.rb
+++ b/history.rb
@@ -46,16 +46,25 @@ load "../charset.rb"
$html.add_css("../dudle.css")
$html << "<body>"
-$html << Dudle::tabs("Access Control")
+$html << Dudle::tabs("History")
$html << <<TABLE
<div id='main'>
- <h1>History</h1>
+ <h1>History of #{table.name}</h1>
TABLE
-$html << "<p id='history'>history:#{table.history_to_html}</p>"
+
+if defined?(REVISION)
+ $html << "<h2>Poll of Version #{REVISION}</h2>"
+else
+ $html << "<h2>Current Poll</h2>"
+end
$html << table.to_html
+
+$html << "<h2>History</h2>"
+$html << "<div id='history'>#{table.history_to_html}</div>"
+
$html << "</div></body>"
$html.out($cgi)