aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates/search_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@archive.org>2020-06-29 17:48:07 -0700
committerBryan Newbold <bnewbold@archive.org>2020-06-29 17:48:07 -0700
commitb9308e5c9ce548cae0ad67dcef390cfd1badaa5c (patch)
tree9d31850eacc805c932072e97e6987c21ff1d9ff5 /fatcat_scholar/templates/search_macros.html
parent82f92d79300d700d978f1b7c96b7a644f4ab979c (diff)
downloadfatcat-scholar-b9308e5c9ce548cae0ad67dcef390cfd1badaa5c.tar.gz
fatcat-scholar-b9308e5c9ce548cae0ad67dcef390cfd1badaa5c.zip
fixes to pagination display
Diffstat (limited to 'fatcat_scholar/templates/search_macros.html')
-rw-r--r--fatcat_scholar/templates/search_macros.html6
1 files changed, 5 insertions, 1 deletions
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 @@
<a>&#xab; Previous</a>
</button>
{% else %}
- <span style="color:gray">&#xab; Previous</span>
+ <span style="color:gray; margin-right: 2em;">&#xab; Previous</span>
{% endif %}
<i>Showing results {{ hits.offset }} &mdash; {{ hits.offset + hits.limit }} out of {{ "{:,}".format(hits.count_found) }} results</i>
+{% if hits.offset + hits.limit < hits.count_found %}
<button class="text-button" form="search_form" type="submit" name="offset" value="{{ hits.offset + hits.limit }}" style="margin-left: 2em;">
<a>Next &#xbb;</a>
+{% else %}
+ <span style="color:gray; margin-left: 2em;">Next &#xbb;</span>
+{% endif %}
</button>
{% endmacro %}