Fleshed out the /tree action and fixed paging.
[catagits/Gitalist.git] / templates / _log_pager.tt2
index d91c406..3c4c1d9 100644 (file)
@@ -1,9 +1,9 @@
 <div class='pager'>
  <a href='/[% action %]?p=[% project %];h=[% HEAD %]'>HEAD</a>
  [% IF log_lines.size == 50 %]
- <a href='/[% action %]?p=[% project %];h=[% commit.sha1 %];pg=[% page %]'>next</a>
+ <a href='/[% action %]?p=[% project %];h=[% commit.sha1 %];pg=[% page + 1 %]'>next</a>
  [% END %]
- [% IF log_lines.first.sha1 != HEAD %]
+ [% IF log_lines.first.sha1 != commit.sha1 %]
  <a href='/[% action %]?p=[% project %];h=[% commit.sha1 %];pg=[% page - 1 %]'>prev</a>
  [% END %]
 </div>