Fixed page navigation in history view.
Zachary Stevens [Mon, 30 Nov 2009 23:08:24 +0000 (23:08 +0000)]
root/_log_pager.tt2

index 8d1401c..c332d35 100644 (file)
@@ -1,9 +1,9 @@
 <div class='pager'>
  <a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a> &sect;
  [% IF log_lines.first.sha1 != commit.sha1 %]
- <a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>&laquo; prev</a>
+ <a href='[% c.request.uri_with(pg => page - 1) %]'>&laquo; prev</a>
  [% END %]
  [% IF log_lines.size == 50 %]
- <a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next &raquo;</a>
+ <a href='[% c.request.uri_with(pg => page + 1) %]'>next &raquo;</a>
  [% END %]
 </div>