Added paging to the /shortlog action.
[catagits/Gitalist.git] / templates / _shortlog.tt2
index 7892534..26b6ad7 100644 (file)
@@ -1,3 +1,15 @@
+[% BLOCK pager %]
+<div class='pager'>
+ [% IF log_lines.size == 50 %]
+ <a href='/[% action %]?p=[% project %];h=[% commit.sha1 %];pg=[% page %]'>next</a>
+ [% END %]
+ [% IF log_lines.first.sha1 != HEAD %]
+ <a href='/[% action %]?p=[% project %];h=[% commit.sha1 %];pg=[% page - 1 %]'>prev</a>
+ [% END %]
+</div>
+[% END %]
+
+[% INCLUDE pager %]
 <table>
  <thead>
   <tr>
@@ -44,4 +56,4 @@
   </tr>
  </tfoot>
 </table>
-
+[% INCLUDE pager %]