Give every page of trails one layout, with the map beside the rows, and set no tables
Every page that shows a set of trails (home, places, lists, Routes, authors, Triple Crown, rankings, newest) has the same layout: the trails as rows with their map beside them from 900 px wide up, and a short map band above the rows when narrower. The home page gets its headline back on the contour ground, with the ten lists as one line of links. A trail page has its actions in its head and the map in a fixed frame beside At a glance. No page sets a table: every set of trails is the standard trail row, and other sets are rows in the same language. Route authors' names link to their pages from route rows and trail pages, the Routes page says how many routes by how many authors, and the Lists index has a Route authors entry. No trail's facts changed. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
59f912c47c
commit
298f1b9fd9
28 files changed
+843
-541
No files matched your search
@@ -44,7 +44,7 @@ def unfinished():
|
||||
|
||||
def glance_length(rec):
|
||||
body = top_part(render(rec))
|
||||
start = body.index('<dt>Length</dt>')
|
||||
start = body.index('<dt>Length</dt>', body.index('id="glance-title"'))
|
||||
return body[start:body.index("</div>", start)]
|
||||
|
||||
|
||||
@@ -55,6 +55,10 @@ class GlanceTest(unittest.TestCase):
|
||||
self.assertIn(f"Whole system: 1,584 mi 2,549 km, counting {NOTE}", text(row))
|
||||
self.assertLess(row.index("len--stack"), row.index("Whole system"))
|
||||
self.assertIn("<small>", row)
|
||||
# a line of its own across the whole panel
|
||||
self.assertIn('<span class="glance__aside">Whole system', row)
|
||||
body = top_part(render(florida()))
|
||||
self.assertIn('<div class="glance__wide glance__length"><dt>Length</dt>', body)
|
||||
|
||||
def test_the_built_figure_sits_beneath_the_length(self):
|
||||
row = glance_length(unfinished())
|
||||
|
||||
Reference in new issue
Block a user