Move all the templates back into the 'root' directory, otherwise make install will...
[catagits/Gitalist.git] / root / _log_pager.tt2
diff --git a/root/_log_pager.tt2 b/root/_log_pager.tt2
new file mode 100644 (file)
index 0000000..8086e8f
--- /dev/null
@@ -0,0 +1,9 @@
+<div class='pager'>
+ <a href='[% c.uri_for(action, {h=HEAD}) %]'>HEAD</a>
+ [% IF log_lines.size == 50 %]
+ <a href='[% c.uri_for(action, {pg=page + 1, h=commit.sha1}) %]'>next</a>
+ [% END %]
+ [% IF log_lines.first.sha1 != commit.sha1 %]
+ <a href='[% c.uri_for(action, {pg=page - 1, h=commit.sha1}) %]'>prev</a>
+ [% END %]
+</div>