From b9308e5c9ce548cae0ad67dcef390cfd1badaa5c Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Mon, 29 Jun 2020 17:48:07 -0700 Subject: fixes to pagination display --- fatcat_scholar/templates/search_macros.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'fatcat_scholar') diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html index 69e2636..8ddac09 100644 --- a/fatcat_scholar/templates/search_macros.html +++ b/fatcat_scholar/templates/search_macros.html @@ -215,11 +215,15 @@ « Previous {% else %} - « Previous + « Previous {% endif %} Showing results {{ hits.offset }} — {{ hits.offset + hits.limit }} out of {{ "{:,}".format(hits.count_found) }} results +{% if hits.offset + hits.limit < hits.count_found %} {% endmacro %} -- cgit v1.2.3