Put the filters on every list and place page, and count their numbers from the page
The search and filters bar is on every list, place and the Routes page with ten or more trails, scoped to that page's set and closed to start. The number beside each choice is recounted from the page's rows on every change; a choice that would show nothing is hidden; a filter that cannot narrow the page is left out. The open panel sits in the flow and pushes the rows down. Each part of the country has a page of its own, and the links to the home page "with the filters" are gone. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
f467fcb560
commit
1ed0a68991
12 files changed
+906
-212
No files matched your search
@@ -566,11 +566,11 @@ class RenderUnitTest(unittest.TestCase):
|
||||
f.write('id = "x"\n')
|
||||
rec = sample_record(name="A & B")
|
||||
n = pages.render_site([rec], out, repo, site=site.Site("N", "T"))
|
||||
# trail page + home + 404 + places hub + 1 place + lists hub + routes,
|
||||
# trail page + home + 404 + places hub + 1 place + its part of the country + lists hub + routes,
|
||||
# sources, logos, about, data, schema, changelog, left out, saved (no list holds MIN_SIZE trails),
|
||||
# and the two reference pages, the glossary and the method (the tables, authors, recent and
|
||||
# linked-trails pages need at least MIN_SIZE trails and are not built for one)
|
||||
self.assertEqual(n, 17)
|
||||
self.assertEqual(n, 18)
|
||||
with open(os.path.join(out, "trails", "x", "index.html"), encoding="utf-8") as f:
|
||||
self.assertIn("A & B", f.read())
|
||||
with open(os.path.join(out, "index.html"), encoding="utf-8") as f:
|
||||
|
||||
Reference in new issue
Block a user