aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2017-08-08 11:11:40 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2017-08-08 11:11:40 +0100
commit82f4fd831c2dd4517437b1c27c2ec43ac6d14549 (patch)
tree6b13eccbb6e2c1dc72607c20dab3983799259df2
parentc2483a8b99ceb9e5b32df064f05293c7c5738a63 (diff)
parentf40586cbf016188709b7a540c1ef8b81f9744e4b (diff)
Merge branch 'always-show-list-numbers'
-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 813c6458f..cb2bb5673 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.
- Admin improvements:
- Highlight current shortlisted user in list tooltip.
- Bugfixes:
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>