aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/pagination.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/web/base/pagination.html')
-rw-r--r--templates/web/base/pagination.html19
1 files changed, 19 insertions, 0 deletions
diff --git a/templates/web/base/pagination.html b/templates/web/base/pagination.html
new file mode 100644
index 000000000..63180b600
--- /dev/null
+++ b/templates/web/base/pagination.html
@@ -0,0 +1,19 @@
+[% IF pager.last_page > 1 %]
+[% IF NOT admin %]
+<section class="full-width">
+[% END %]
+ <p class="pagination">
+ [% IF pager.previous_page %]
+ <a class="prev" href="[% c.req.uri_with({ $param => pager.previous_page }) %][% '#' _ hash IF hash %]">[% loc('Previous') %]</a>
+ [% END %]
+
+ [% tprintf( loc('%d to %d of %d'), pager.first, pager.last, pager.total_entries ) %]
+
+ [% IF pager.next_page %]
+ <a class="next" href="[% c.req.uri_with({ $param => pager.next_page }) %][% '#' _ hash IF hash %]">[% loc('Next') %]</a>
+ [% END %]
+ </p>
+[% IF NOT admin %]
+</section>
+[% END %]
+[% END %]