summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-08-06 11:58:10 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-08-06 11:58:10 -0700
commit56e4ce2d8347cdfedd492d54fde080772f3d8725 (patch)
tree272e5e7c1affb299ca3a73844d25ca7567655432
parent4338ec346381647f079a464092e45c609894fe11 (diff)
downloadfatcat-56e4ce2d8347cdfedd492d54fde080772f3d8725.tar.gz
fatcat-56e4ce2d8347cdfedd492d54fde080772f3d8725.zip
refs: format (commas) large refs hit counts
-rw-r--r--python/fatcat_web/templates/refs_macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/fatcat_web/templates/refs_macros.html b/python/fatcat_web/templates/refs_macros.html
index 4ccca7a5..47ea2dcf 100644
--- a/python/fatcat_web/templates/refs_macros.html
+++ b/python/fatcat_web/templates/refs_macros.html
@@ -7,7 +7,7 @@
{% if hits.count_returned == 0 %}
Showing 0 references
{% else %}
- Showing {{ hits.offset + 1 }} - {{ hits.offset + hits.count_returned }} of {{ hits.count_total}} references
+ Showing {{ "{:,}".format(hits.offset + 1) }} - {{ "{:,}".format(hits.offset + hits.count_returned) }} of {{ "{:,}".format(hits.count_total) }} references
{% endif %}
{% if with_links and hits.count_total != hits.count_returned and hits.offset + hits.limit < hits.count_total %}
&nbsp;<a href="?offset={{ hits.offset + hits.limit }}">next &raquo;</a>