aboutsummaryrefslogtreecommitdiffstats
path: root/fatcat_scholar/templates
diff options
context:
space:
mode:
Diffstat (limited to 'fatcat_scholar/templates')
-rw-r--r--fatcat_scholar/templates/search_macros.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/fatcat_scholar/templates/search_macros.html b/fatcat_scholar/templates/search_macros.html
index 4ce0356..9524d7e 100644
--- a/fatcat_scholar/templates/search_macros.html
+++ b/fatcat_scholar/templates/search_macros.html
@@ -506,7 +506,7 @@
<i style="padding-left: 0.5em; padding-right: 0.5em;">
{% trans trimmed start=babel_numbers.format_number(hits.offset + 1, locale=locale),
- end=babel_numbers.format_number(hits.offset + hits.limit, locale=locale),
+ end=babel_numbers.format_number([hits.offset + hits.limit, hits.count_found]|min, locale=locale),
total=babel_numbers.format_number(hits.count_found, locale=locale) %}
Showing results {{ start }} &mdash; {{ end }} out of {{ total }} results
{% endtrans %}