diff options
author | Bryan Newbold <bnewbold@archive.org> | 2020-06-29 17:48:07 -0700 |
---|---|---|
committer | Bryan Newbold <bnewbold@archive.org> | 2020-06-29 17:48:07 -0700 |
commit | b9308e5c9ce548cae0ad67dcef390cfd1badaa5c (patch) | |
tree | 9d31850eacc805c932072e97e6987c21ff1d9ff5 /fatcat_scholar | |
parent | 82f92d79300d700d978f1b7c96b7a644f4ab979c (diff) | |
download | fatcat-scholar-b9308e5c9ce548cae0ad67dcef390cfd1badaa5c.tar.gz fatcat-scholar-b9308e5c9ce548cae0ad67dcef390cfd1badaa5c.zip |
fixes to pagination display
Diffstat (limited to 'fatcat_scholar')
-rw-r--r-- | fatcat_scholar/templates/search_macros.html | 6 |
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>« Previous</a> </button> {% else %} - <span style="color:gray">« Previous</span> + <span style="color:gray; margin-right: 2em;">« Previous</span> {% endif %} <i>Showing results {{ hits.offset }} — {{ 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 »</a> +{% else %} + <span style="color:gray; margin-left: 2em;">Next »</span> +{% endif %} </button> {% endmacro %} |