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
@@ -183,13 +183,13 @@ class TrailPageTest(unittest.TestCase):
|
||||
def test_credit_licence_and_partial_warning_stay_in_view(self):
|
||||
rec = with_line(sample_record("X Trail"))
|
||||
top = top_part(render(rec))
|
||||
# the credit and licence beside the downloads, and on the map's caption
|
||||
# the credit and licence beside the downloads, and the map's credit under them
|
||||
panel = top[top.index('id="download"'):]
|
||||
self.assertIn('id="credit-text">Example Trail Association (CC BY 4.0)<', panel)
|
||||
self.assertIn('Licence: <a href="https://creativecommons.org/licenses/by/4.0/">CC BY 4.0</a>', panel)
|
||||
self.assertLess(panel.index('<ul class="downloads">'), panel.index('class="credit"'))
|
||||
caption = top[top.index('<figcaption class="mapfig__caption">'):]
|
||||
self.assertIn("Credit: Example Trail Association (CC BY 4.0).", caption)
|
||||
credit = top[top.index('<section class="map-credit"'):]
|
||||
self.assertIn("Track credit: Example Trail Association (CC BY 4.0).", credit)
|
||||
# the partial warning above the buttons, and in the glance
|
||||
self.assertLess(panel.index("notice--partial"), panel.index('<ul class="downloads">'))
|
||||
self.assertIn("Partial GPX to download here", top)
|
||||
|
||||
Reference in new issue
Block a user