aboutsummaryrefslogtreecommitdiffstats
path: root/templates/web/base/pagination.html
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2014-07-07 16:59:23 +0100
committerMatthew Somerville <matthew@mysociety.org>2014-07-08 17:59:17 +0100
commitba8d2c4ba6f6c0216d618e77d368b640a2b92d1e (patch)
tree8b9e1a960f91c006606b5e0767a84a400dfc2fb0 /templates/web/base/pagination.html
parent8f2c5942e3aa5d3b85e76b7353ab7ada87f97fc6 (diff)
Rename 'default' web directory to 'base'.
This should reduce confusion with the Default cobrand and override order.
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 %]