diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-20 13:58:45 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-20 13:58:45 +0100 |
commit | 803b626975e0bb8c02b6a887d43a21655f670f90 (patch) | |
tree | e55dfbbe64a90c129e3556afb0c9dadede5d73c3 /history.rb | |
parent | 393b80ed66f10a7670d1022361b063fe0118e746 (diff) |
made history tab usefull
Diffstat (limited to '')
-rwxr-xr-x | history.rb | 15 |
1 files changed, 12 insertions, 3 deletions
@@ -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) |