aboutsummaryrefslogtreecommitdiff
path: root/history.rb
diff options
context:
space:
mode:
authorBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-23 15:05:58 +0100
committerBenjamin Kellermann <Benjamin.Kellermann@gmx.de>2009-11-23 15:05:58 +0100
commitfc936f76f65db94469959883c8ef2926ff0e779b (patch)
tree7b3d64fc103abc02efdb6d000194062854409d34 /history.rb
parent6bcb17d78da2ed2df16c4d994c866dcf57ebe3f4 (diff)
new feature selecting parts of history
Diffstat (limited to '')
-rwxr-xr-xhistory.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/history.rb b/history.rb
index 6edacdc..43c5264 100755
--- a/history.rb
+++ b/history.rb
@@ -63,7 +63,11 @@ $html << "<h2>#{versiontitle}</h2>"
$html << table.to_html("",false)
$html << "<h2>History</h2>"
-$html << "<div id='history'>#{table.history_to_html(maxrev, revno)}</div>"
+$html << "<div id='history'>"
+historyselect = $cgi.include?("history") ? $cgi["history"] : nil
+$html << table.history_selectform(revno == maxrev ? nil : revno, historyselect)
+$html << table.history_to_html(maxrev, revno, historyselect)
+$html << "</div>"
$html << "</div></body>"