aboutsummaryrefslogtreecommitdiff
path: root/history.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-01 15:58:30 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-12-01 15:58:30 +0100
commit16f555e4643b826c1a1f38cdbfb6fffe0cb7aadc (patch)
treea96fd6f5e4e8b509c1e056aa9c4145cd8b1643c8 /history.rb
parentd1e2f034b9fb6d6e07f472bd5483c9122a3270da (diff)
code cleanup
Diffstat (limited to '')
-rwxr-xr-xhistory.rb17
1 files changed, 9 insertions, 8 deletions
diff --git a/history.rb b/history.rb
index f154fea..bbded14 100755
--- a/history.rb
+++ b/history.rb
@@ -32,15 +32,16 @@ else
$d = Dudle.new("History")
end
-$d << "<h2>#{versiontitle}</h2>"
-$d << $d.table.to_html("",false)
+$d << <<HTML
+<h2>#{versiontitle}</h2>
+#{$d.table.to_html("",false)}
+<h2>History</h2>
+<div id='history'>
+#{$d.table.history_selectform($cgi.include?("revision") ? revno : nil, $cgi["history"])}
-$d << "<h2>History</h2>"
-$d << "<div id='history'>"
-$d << $d.table.history_selectform($cgi.include?("revision") ? revno : nil, $cgi["history"])
-
-$d << $d.table.history_to_html(revno, $cgi["history"])
-$d << "</div>"
+#{$d.table.history_to_html(revno, $cgi["history"])}
+</div>
+HTML
$d.out($cgi)
end