aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat_web/templates/search_macros.html
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-02-25 18:49:59 -0800
committerBryan Newbold <bnewbold@robocracy.org>2021-02-25 18:49:59 -0800
commit295e6b16eb7ac90fd8d6e3272827c592903b62e7 (patch)
tree2579fa95407cf6b17fa0567ce999ab08278a6c2a /python/fatcat_web/templates/search_macros.html
parent87bab32f1391e8074d4ab9cb3d97f86c257065e2 (diff)
downloadfatcat-295e6b16eb7ac90fd8d6e3272827c592903b62e7.tar.gz
fatcat-295e6b16eb7ac90fd8d6e3272827c592903b62e7.zip
web: format search result counts
Diffstat (limited to 'python/fatcat_web/templates/search_macros.html')
-rw-r--r--python/fatcat_web/templates/search_macros.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/fatcat_web/templates/search_macros.html b/python/fatcat_web/templates/search_macros.html
index a207bfbc..cb917c5f 100644
--- a/python/fatcat_web/templates/search_macros.html
+++ b/python/fatcat_web/templates/search_macros.html
@@ -9,7 +9,7 @@
{% endif %}
{{ found.offset + found.count_returned }}
- out of {{ found.count_found }} results
+ out of {{ '{0:,}'.format(found.count_found) }} results
</i>
{%- endmacro %}
@@ -28,7 +28,7 @@
{% endif %}
&nbsp;&nbsp;<i>Showing results {{ found.offset }} &mdash; {{ found.offset +
-found.count_returned }} out of {{ found.count_found }} results</i>&nbsp;&nbsp;
+found.count_returned }} out of {{ '{0:,}'.format(found.count_found) }} results</i>&nbsp;&nbsp;
{% if found.offset + found.limit < found.count_found and found.offset + found.limit < found.deep_page_limit %}
<a href="{{ url_for(endpoint, q=query.q, offset=found.offset + found.limit) }}">Next &#xbb;</a>