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
@@ -297,7 +297,8 @@ class BuiltVocabularyTest(unittest.TestCase):
|
||||
doc = self.read("index.html")
|
||||
n = len(re.findall(r'<li class="entry" ', doc))
|
||||
self.assertEqual(n, len(records.load_records(ROOT)))
|
||||
self.assertIn(f"<strong>{n}</strong> of {n} trails", doc)
|
||||
self.assertIn(f"<strong>{n}</strong> trails</p>", doc)
|
||||
self.assertNotIn(f"{n} of {n}", doc)
|
||||
self.assertIn(f"{n} trails. Narrow them", doc)
|
||||
|
||||
def test_route_badges_link_to_the_routes_list(self):
|
||||
|
||||
Reference in new issue
Block a user