aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/default/pagination.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/default/pagination.html')
-rw-r--r--templates/web/default/pagination.html17
1 files changed, 17 insertions, 0 deletions
diff --git a/templates/web/default/pagination.html b/templates/web/default/pagination.html
new file mode 100644
index 000000000..f5a1192d1
--- /dev/null
+++ b/templates/web/default/pagination.html
@@ -0,0 +1,17 @@
+[% IF pager.last_page > 1 %]
+ <p>
+ [% IF pager.previous_page %]
+ <a href="[% c.req.uri_with({ $param => pager.previous_page }) %]">&larr; Previous</a>
+ [% ELSE %]
+ &larr; Previous
+ [% END %]
+ |
+ [% pager.first %] to [% pager.last %] of [% pager.total_entries %]
+ |
+ [% IF pager.next_page %]
+ <a href="[% c.req.uri_with({ $param => pager.next_page }) %]">Next &rarr;</a>
+ [% ELSE %]
+ Next &rarr;
+ [% END %]
+ </p>
+[% END %]