aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-04 15:58:24 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-08 09:54:29 +0100
commitf40586cbf016188709b7a540c1ef8b81f9744e4b (patch)
tree99cf29aefc4be38d3b84cd3d162c46d334ecb4b9
parentb8c233fab49af1ab1cdfdda64e83fddac993cb94 (diff)
Always show pagination figures if >1 report.
Even if no next/previous page, the number of items can be useful.
-rw-r--r--CHANGELOG.md2
-rw-r--r--templates/web/base/pagination.html2
2 files changed, 3 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 842e7b311..6d4ddbca0 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,6 +1,8 @@
## Releases
* Unreleased
+ - Front end improvements:
+ - Always show pagination figures even if only one page.
- Bugfixes:
- Set up action scheduled field when report loaded. #1789
- Stop errors from JS validator due to form in form.
diff --git a/templates/web/base/pagination.html b/templates/web/base/pagination.html
index 448186838..a677b9d58 100644
--- a/templates/web/base/pagination.html
+++ b/templates/web/base/pagination.html
@@ -1,4 +1,4 @@
-[% IF pager.last_page > 1 %]
+[% IF pager.total_entries > 1 %]
<p class="pagination">
[% IF pager.previous_page %]
<a class="prev" href="[% c.uri_with({ $param => pager.previous_page, ajax => undefined }) %][% '#' _ hash IF hash %]">[% loc('Previous') %]</a>