diff options
author | Matthew Somerville <matthew@mysociety.org> | 2011-07-04 11:59:01 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2011-07-04 11:59:01 +0100 |
commit | b7ea1827eda956e9eebb06b0d1d69600342bb961 (patch) | |
tree | c4d2d5613984f5ebbe3925d5a37ced40740decb9 /templates/web/default/pagination.html | |
parent | 4ad5f950ed4e426d2615525e36de7cfa71b4812b (diff) |
Consolidate pagination, fix parameter being wrong.
Diffstat (limited to 'templates/web/default/pagination.html')
-rw-r--r-- | templates/web/default/pagination.html | 17 |
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..d26f07ce3 --- /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 }) %]">← Previous</a> + [% ELSE %] + ← 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 →</a> + [% ELSE %] + Next → + [% END %] + </p> +[% END %] |