diff options
author | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-25 18:49:59 -0800 |
---|---|---|
committer | Bryan Newbold <bnewbold@robocracy.org> | 2021-02-25 18:49:59 -0800 |
commit | 295e6b16eb7ac90fd8d6e3272827c592903b62e7 (patch) | |
tree | 2579fa95407cf6b17fa0567ce999ab08278a6c2a /python/fatcat_web/templates/search_macros.html | |
parent | 87bab32f1391e8074d4ab9cb3d97f86c257065e2 (diff) | |
download | fatcat-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.html | 4 |
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 %} <i>Showing results {{ found.offset }} — {{ found.offset + -found.count_returned }} out of {{ found.count_found }} results</i> +found.count_returned }} out of {{ '{0:,}'.format(found.count_found) }} results</i> {% 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 »</a> |