diff options
author | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-23 19:50:36 +0100 |
---|---|---|
committer | Benjamin Kellermann <Benjamin.Kellermann@gmx.de> | 2009-11-23 19:50:36 +0100 |
commit | 2fc1758c7be01cd3683457164c76cf7acd9df827 (patch) | |
tree | 8f80ad38744006dfb007ba41754520478e2932ca /poll.rb | |
parent | 73cb84647e97679cbd69a3ea87d49f72b950c3df (diff) |
show everytime 10 history entries
Diffstat (limited to 'poll.rb')
-rw-r--r-- | poll.rb | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -234,7 +234,7 @@ ADDCOMMENT <div> <select name='history'> FORM - ["comments","participants","columns"].each{|opt| + ["", "comments","participants","columns"].each{|opt| ret += "<option value='#{opt}' #{selected == opt ? "selected='selected'" : ""} >#{opt}</option>" } ret += "<input type='hidden' name='revision' value='#{revision}' />" if revision @@ -249,7 +249,7 @@ FORM def history_to_html(middlerevision,only) log = VCS.history - if only + if only != "" case only when "comments" match = /^Comment .*$/ @@ -262,7 +262,7 @@ FORM end log = log.comment_matches(match) end - log[((middlerevision-5)..(middlerevision+5))].to_html(middlerevision) + log.around_rev(middlerevision,11).to_html(middlerevision) end def add_participant(olduser, name, agreed) |