Say "35 trails", not "35 of 35 trails", when nothing is filtered out
The count above each set of rows keeps the "12 of 35 trails" form only when some are filtered out, in the built pages and in the script alike. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
76622257b7
commit
5abd7b1ede
5 files changed
+50
-5
No files matched your search
+1
-1
@@ -578,7 +578,7 @@ def results(recs=None, *, finder=False, groups=None, routes_list=False, default_
|
||||
lists += f'\n <ol class="entries"{list_id}{every}>\n{rows}\n </ol>'
|
||||
if finder:
|
||||
count = (f'<p class="results-count" id="results-count" role="status" data-noun="{noun}">'
|
||||
f'<strong>{total}</strong> of {total} {noun}</p>')
|
||||
f'<strong>{total}</strong> {noun}</p>')
|
||||
empty = f"""
|
||||
<div class="empty-state" id="empty-state" hidden>
|
||||
<p><strong>No {noun} match these filters.</strong></p>
|
||||
|
||||
Reference in new issue
Block a user