Show each trail's own emblem, keep a history on every record, and list what was left out
- Emblems for 81 trails, up from 41. Each is the trail's own crest, badge or roundel alone, cropped out of a larger logo where need be and made transparent where that could be done cleanly. Records without one say where an emblem was looked for. The validator checks the logo state. - Every record has a `[[history]]` list: what changed or was asked for, on what basis, who asked and whether it was applied or declined. `tools/check_history.py` fails a changed fact with no history entry and prints earlier entries about a changed field. It runs in CI before the site deploys. Each trail page shows the history. - A new page, "Considered and left out", built from `left-out.toml`: 35 trails and routes with the reason, the deciding fact and its source. - The Hoosier Heritage Trail has its ends, its free map set and its emblem from its association (issue 2). Any trail may list its holder's own guide or map set. - A stated permission is quoted in the download credit box. - `tools/gpx_track.py` turns a GPX file from a holder or a hiker into a record's track files. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
d34a9617cd
commit
24bfbb2fa8
374 files changed
+7796
-703
No files matched your search
+10
-4
@@ -249,9 +249,11 @@ def logos_page(records, site, repo_root):
|
||||
<div class="container section"><div class="section-head"><h2>Every logo in the dataset</h2>
|
||||
<p>{len(with_logo)} records include a logo file.</p></div>
|
||||
<ul class="logo-grid">{cards}</ul>
|
||||
<p class="note">No logo file is included for the other records: {counts["no-logo-exists"]} are recorded as
|
||||
having no logo (<code class="raw">no-logo-exists</code>) and {counts["logo-not-found"]} as
|
||||
logo not found (<code class="raw">logo-not-found</code>).</p></div>"""
|
||||
<p class="note">No logo file is included for the other records. {counts["no-logo-exists"]} have no emblem of
|
||||
their own (<code class="raw">no-logo-exists</code>): the pages that would show one were checked and none does.
|
||||
{counts["logo-not-found"]} have an emblem, or may have one, but no usable artwork of it was found at a source the
|
||||
dataset allows (<code class="raw">logo-not-found</code>). Each record says in its logo note where an emblem was
|
||||
looked for.</p></div>"""
|
||||
return "Logos", "Trail logos, their holders, and how a holder can ask for removal.", Markup(body)
|
||||
|
||||
|
||||
@@ -267,6 +269,7 @@ ABOUT_PARTS = (
|
||||
("/logos/", "Logos", "Each trail's logo, who holds it, and how to ask for removal"),
|
||||
("/data/schema/", "Record schema", "Every field of a trail's record (trail.toml) and what it means"),
|
||||
("/data/changelog/", "Changelog", "What changed, release by release"),
|
||||
("/left-out/", "Considered and left out", "Trails that were looked at and left out, and why"),
|
||||
("#correct-or-add", "Correct or add a trail", "Report a problem, suggest a trail, or edit the data"),
|
||||
)
|
||||
|
||||
@@ -312,7 +315,8 @@ def about_page(records, site, repo_root):
|
||||
forms = (f'<ul class="linklist">'
|
||||
f'<li><a href="{esc(site.correction_url())}">Report a problem</a><small>A short form, no git needed. '
|
||||
f'Every trail page also has its own link, with the trail filled in.</small></li>'
|
||||
f'<li><a href="{esc(site.new_trail_url)}">Suggest a trail</a><small>A short form for a trail that is missing</small></li>'
|
||||
f'<li><a href="{esc(site.new_trail_url)}">Suggest a trail</a><small>A short form for a trail that is missing. '
|
||||
f'First look at <a href="/left-out/">Considered and left out</a>, in case it has been decided already</small></li>'
|
||||
f'<li><a href="{esc(site.removal_url)}">Ask for a track or logo to be removed</a><small>For the holder of a track or a logo</small></li>'
|
||||
f'<li><a href="{esc(site.repo_url)}">Edit the data yourself</a><small>The source repository: one text file per trail</small></li>'
|
||||
f'</ul>')
|
||||
@@ -342,6 +346,8 @@ a trail association, or a route: {esc(facets.ROUTE_DEFINITION[0].lower() + facet
|
||||
trails between 37 and 50 miles (60 and 80 km).</p>
|
||||
<p>Each record has a <em>tier</em>, which says why it is listed. A record can also be <em>held</em>: listed,
|
||||
but with something about it not yet settled, which its note says.</p>
|
||||
<p>Trails that were looked at and left out are kept in the open too, with the reason for each one:
|
||||
<a href="/left-out/">Considered and left out</a>. Look there before suggesting a trail.</p>
|
||||
<div class="table-wrap"><table><thead><tr><th scope="col">Tier</th><th scope="col">What it means</th><th scope="col">Records</th></tr></thead>
|
||||
<tbody>{tier_rows}<tr><td>Held <code class="raw">wave = "held"</code></td><td>{esc(words.meaning(words.WAVES, "held"))}. Any tier can be held.</td><td class="num">{held}</td></tr></tbody></table></div>
|
||||
<p>These states are for keeping the dataset. They are not shown when browsing trails, and they do not change
|
||||
|
||||
+3
-1
@@ -30,7 +30,8 @@ NAV = (
|
||||
# lists (Routes among them) are part of Trails; the dataset pages are part of
|
||||
# About and are linked from the About hub and the footer.
|
||||
NAV_PARENT = {"/trails/": "/", "/lists/": "/", "/routes/": "/",
|
||||
"/sources/": "/about/", "/logos/": "/about/", "/data/": "/about/"}
|
||||
"/sources/": "/about/", "/logos/": "/about/", "/data/": "/about/",
|
||||
"/left-out/": "/about/"}
|
||||
|
||||
FONT_PRELOADS = (
|
||||
"/assets/fonts/source-serif-4-latin.woff2",
|
||||
@@ -146,6 +147,7 @@ def footer(site):
|
||||
<li><a href="/data/">Data and downloads</a></li>
|
||||
<li><a href="/sources/">Sources and their terms</a></li>
|
||||
<li><a href="/logos/">Logos</a></li>
|
||||
<li><a href="/left-out/">Considered and left out</a></li>
|
||||
{report}
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
@@ -0,0 +1,144 @@
|
||||
"""The Considered and left out page (/left-out/): built from left-out.toml.
|
||||
|
||||
left-out.toml holds the trails and routes that were looked at and left out
|
||||
of the dataset, with the reason, the deciding fact, the page that shows it
|
||||
and the date the decision was made. Its fields are in docs/schema.md.
|
||||
Everything on this page comes from that file and from web/site.toml.
|
||||
"""
|
||||
import os
|
||||
import tomllib
|
||||
|
||||
from . import words
|
||||
from .markup import Markup, esc
|
||||
|
||||
FILE_NAME = "left-out.toml"
|
||||
PATH = "/left-out/"
|
||||
REAL_ROOT = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
|
||||
|
||||
# reason -> (heading, one plain sentence on what the heading means).
|
||||
# Ordered as the inclusion rule states them; the page follows this order.
|
||||
REASONS = {
|
||||
"below-floor": ("Below the 50 mile floor",
|
||||
"The floor for this list is 50 miles (80 km), apart from a few well known shorter trails."),
|
||||
"rail-trail-or-towpath": ("Rail trails and canal towpaths",
|
||||
"Paths made mainly for cycling, such as gravel rail trails and canal towpaths, are not listed."),
|
||||
"driving-route": ("Mainly driving or motor routes",
|
||||
"Historic trails that are mainly driving routes with short walkable pieces are not listed."),
|
||||
"not-mainly-walking": ("Mainly for bikes, horses or motor vehicles",
|
||||
"A trail made mainly for other users is not a walking trail for this list."),
|
||||
"network": ("Networks, not one trail",
|
||||
"This list holds one named trail or route at a time, not a whole network of trails."),
|
||||
"cannot-be-walked-through": ("Cannot be walked through",
|
||||
"A listed trail can be walked as one continuous walk, road links allowed."),
|
||||
"mostly-unbuilt": ("Mostly unbuilt or still proposed",
|
||||
"A trail that does not yet exist on the ground cannot be listed."),
|
||||
"not-published-as-route": ("Not published as a route by its author",
|
||||
"A route is listed when its author has published it as a route, with a stated length."),
|
||||
"waiting": ("Waiting",
|
||||
"Not left out for good. Each entry says what would change the decision."),
|
||||
}
|
||||
REASON_ORDER = tuple(REASONS)
|
||||
|
||||
|
||||
def load_entries(repo_root):
|
||||
"""The [[trail]] entries of left-out.toml, or [] when the file is not there."""
|
||||
for base in (repo_root, REAL_ROOT):
|
||||
path = os.path.join(base, FILE_NAME)
|
||||
if os.path.isfile(path):
|
||||
with open(path, "rb") as f:
|
||||
doc = tomllib.load(f)
|
||||
return doc.get("trail") or []
|
||||
return []
|
||||
|
||||
|
||||
def _where(entry):
|
||||
names = [words.region_name(str(c)) for c in entry.get("regions", [])]
|
||||
return ", ".join(names)
|
||||
|
||||
|
||||
def _length(entry):
|
||||
"""The length as the holder or author states it: length_note in words,
|
||||
else both units with miles first, else nothing (no page states one)."""
|
||||
note = entry.get("length_note")
|
||||
if note:
|
||||
return esc(note)
|
||||
km = entry.get("length_km")
|
||||
mi = entry.get("length_mi")
|
||||
if km is None and mi is not None:
|
||||
km = mi * words.KM_PER_MI
|
||||
if km is None:
|
||||
return Markup("")
|
||||
return words.length(km, mi=mi)
|
||||
|
||||
|
||||
def _opening(entries, site):
|
||||
n = len(entries)
|
||||
gone = sum(1 for e in entries if e.get("was_listed"))
|
||||
second = ("Every one of them is a good walk in its own right and was left "
|
||||
"out only because it does not meet the rule this list uses")
|
||||
if gone:
|
||||
second += (f", and {gone} of them {'were' if gone != 1 else 'was'} "
|
||||
"listed here once and later removed")
|
||||
parts = [
|
||||
f"This page lists {n} trails and routes that were considered for this "
|
||||
"dataset and left out, with the reason, the deciding fact and the date "
|
||||
"for each one.",
|
||||
second + ".",
|
||||
]
|
||||
ask = "open an issue"
|
||||
if site.issues_url:
|
||||
ask = f'<a href="{esc(site.issues_url)}">open an issue</a>'
|
||||
parts.append(
|
||||
f"If the facts behind a decision have changed, {ask} and give a page "
|
||||
"that shows the change, and the decision will be looked at again.")
|
||||
return Markup(" ".join(parts))
|
||||
|
||||
|
||||
def left_out_page(entries, site, repo_root):
|
||||
"""(title, description, body) for /left-out/, from left-out.toml entries."""
|
||||
bread = Markup('<nav class="breadcrumb" aria-label="Breadcrumb"><ol>'
|
||||
'<li><a href="/about/">About</a></li>')
|
||||
groups = ""
|
||||
for reason in REASON_ORDER:
|
||||
listed = [e for e in entries if e.get("reason") == reason]
|
||||
if not listed:
|
||||
continue
|
||||
heading, meaning = REASONS[reason]
|
||||
rows = ""
|
||||
for e in listed:
|
||||
mark = ""
|
||||
if e.get("was_listed"):
|
||||
mark = '<br><span class="tag">Once listed here</span>'
|
||||
why = f"<p>{esc(e.get('note', ''))}</p>"
|
||||
if e.get("waiting_for"):
|
||||
why += (f"<p>It would be listed if this changes: "
|
||||
f"{esc(e['waiting_for'])}</p>")
|
||||
source = ""
|
||||
if e.get("source_url"):
|
||||
source = (f'<a href="{esc(e["source_url"])}">Source page</a>')
|
||||
rows += (
|
||||
f"<tr><td>{esc(e.get('name', ''))}{mark}</td>"
|
||||
f"<td>{esc(_where(e))}</td>"
|
||||
f"<td>{_length(e)}</td>"
|
||||
f"<td>{why}</td>"
|
||||
f'<td><time datetime="{esc(e.get("decided", ""))}">'
|
||||
f"{esc(e.get('decided', ''))}</time></td>"
|
||||
f"<td>{source}</td></tr>")
|
||||
groups += f"""<section aria-labelledby="left-out-{esc(reason)}">
|
||||
<div class="section-head"><h2 id="left-out-{esc(reason)}">{esc(heading)}</h2>
|
||||
<p>{esc(meaning)}</p></div>
|
||||
<div class="table-wrap"><table>
|
||||
<thead><tr><th scope="col">Trail</th><th scope="col">Where</th><th scope="col">Length</th><th scope="col">Why it is left out</th><th scope="col">Decided</th><th scope="col">Source</th></tr></thead>
|
||||
<tbody>{rows}</tbody></table></div>
|
||||
</section>"""
|
||||
body = f"""<div class="page-head"><div class="container">{bread}<li aria-current="page">Considered and left out</li></ol></nav><header class="titleblock">
|
||||
<div class="titleblock__text"><h1>Considered and left out</h1>
|
||||
<p class="page-head__lede">Trails and routes that were looked at for this dataset and left out, and why.</p>
|
||||
</div></header></div></div>
|
||||
<div class="container section">
|
||||
<p class="prose">{_opening(entries, site)}</p>
|
||||
{groups}
|
||||
</div>"""
|
||||
description = ("Trails and routes considered for this dataset and left out: "
|
||||
"the reason, the deciding fact and its source page for each one.")
|
||||
return "Considered and left out", description, Markup(body)
|
||||
+4
-2
@@ -10,7 +10,7 @@ writes:
|
||||
/trails/<id>/shield-thumb.png the list-size copy of a PNG logo (olt/thumbs.py)
|
||||
/regions/, /regions/<slug>/ Places: the hub and one page per state or province
|
||||
/lists/, /lists/<key>/ the lists shown today (olt/browse.py); /routes/ is the Routes list
|
||||
/about/ and the pages under it: /data/, /data/schema/, /data/changelog/, /sources/, /logos/
|
||||
/about/ and the pages under it: /data/, /data/schema/, /data/changelog/, /sources/, /logos/, /left-out/
|
||||
/saved/ the visitor's saved trails (olt/saved.py; not indexed)
|
||||
/404.html not found
|
||||
|
||||
@@ -22,7 +22,7 @@ import json
|
||||
import os
|
||||
import shutil
|
||||
|
||||
from . import browse, docs, home, layout, regions, saved, seo, site as site_settings, thumbs, trail
|
||||
from . import browse, docs, home, layout, leftout, regions, saved, seo, site as site_settings, thumbs, trail
|
||||
|
||||
WEB_DIR = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
|
||||
ASSETS_DIR = os.path.join(WEB_DIR, "assets")
|
||||
@@ -133,6 +133,8 @@ def render_site(records, out_dir, repo_root, site=None):
|
||||
add("/data/schema/", t, d, b)
|
||||
t, d, b = docs.changelog_page(site, repo_root)
|
||||
add("/data/changelog/", t, d, b)
|
||||
t, d, b = leftout.left_out_page(leftout.load_entries(repo_root), site, repo_root)
|
||||
add(leftout.PATH, t, d, b)
|
||||
# The visitor's own list: not indexed, and left out of the sitemap below.
|
||||
t, d, b = saved.saved_page(records, site)
|
||||
layout.write_page(out_dir, saved.PATH, layout.layout(
|
||||
|
||||
+1
-1
@@ -69,6 +69,6 @@ def all_paths(records, region_paths):
|
||||
"""Every indexable page path, in nav order then record pages."""
|
||||
paths = ["/", "/regions/"] + list(region_paths) + [
|
||||
"/routes/", "/sources/", "/logos/", "/about/", "/data/",
|
||||
"/data/schema/", "/data/changelog/"]
|
||||
"/data/schema/", "/data/changelog/", "/left-out/"]
|
||||
paths += [common.trail_path(r) for r in sorted(records, key=lambda r: r["id"])]
|
||||
return paths
|
||||
+70
-24
@@ -575,7 +575,9 @@ def downloads_panel(rec):
|
||||
licence_html = Markup(f'{licence_html}; OpenStreetMap parts {ext_link(words.LICENCE_URLS["ODbL-1.0"], "ODbL 1.0")}')
|
||||
osm_note = ("<p class=\"note\">Tracks from OpenStreetMap need the credit “© OpenStreetMap contributors” "
|
||||
"and stay under the ODbL (share-alike).</p>") if "ODbL" in src.get("attribution", "") + licence else ""
|
||||
licence_note = (f'<p class="note">{esc(words.LICENCE_NOTES[licence])}</p>'
|
||||
permission = permission_figure(src)
|
||||
licence_note = (f'<p class="note">{esc(words.LICENCE_NOTES[licence])}'
|
||||
f'{" The statement is quoted below." if permission else ""}</p>'
|
||||
if licence in words.LICENCE_NOTES else "")
|
||||
release = (f'<p class="note"><a href="/trails/{esc(rec["id"])}/release.txt">release.txt</a>: '
|
||||
f"the source, licence and date the track files came from.</p>"
|
||||
@@ -594,7 +596,7 @@ def downloads_panel(rec):
|
||||
<button class="button button--quiet" type="button" data-copy="#credit-text" data-copy-status="#credit-done" aria-describedby="credit-label" hidden>Copy credit</button>
|
||||
</div>
|
||||
<p class="credit__done" id="credit-done" role="status"></p>
|
||||
{osm_note}{licence_note}
|
||||
{osm_note}{licence_note}{permission}
|
||||
</div>
|
||||
{release}
|
||||
</div>
|
||||
@@ -647,10 +649,10 @@ def guides_panel(rec):
|
||||
return ""
|
||||
cards = "".join(guide_card(g, i) for i, g in enumerate(guides, 1))
|
||||
return f"""<section class="panel" aria-labelledby="guides-title">
|
||||
<h2 class="panel__head" id="guides-title">Where to get the route</h2>
|
||||
<h2 class="panel__head" id="guides-title">{"Where to get the route" if common.is_route(rec) else "Maps and guides"}</h2>
|
||||
<div class="panel__body">
|
||||
<ul class="guides">{cards}</ul>
|
||||
<p class="note">Links go to the author’s or publisher’s own page for each guide.</p>
|
||||
<p class="note">Links go to the {"author’s or publisher’s" if common.is_route(rec) else "holder’s"} own page for each guide.</p>
|
||||
</div>
|
||||
</section>"""
|
||||
|
||||
@@ -936,6 +938,21 @@ def elevation_block(rec):
|
||||
return block("elevation-data-title", "Elevation", content)
|
||||
|
||||
|
||||
def permission_figure(src):
|
||||
"""The quoted words of a track shared by stated permission: the quotation, who said it and
|
||||
when, and the page it was read at. Empty for any other licence."""
|
||||
if src.get("licence") != "stated-permission" or not src.get("permission_quote"):
|
||||
return ""
|
||||
url = src.get("permission_url", "")
|
||||
return f"""<figure class="quote">
|
||||
<blockquote{f' cite="{esc(url)}"' if url else ""}><p>{esc(src["permission_quote"])}</p></blockquote>
|
||||
<figcaption>
|
||||
<p class="quote__who">Said by {esc(src.get("permission_by", ""))} on {esc(src.get("permission_date", ""))}.</p>
|
||||
{f'<p>Read at {ext_link(url)}.</p>' if url else ""}
|
||||
</figcaption>
|
||||
</figure>"""
|
||||
|
||||
|
||||
def source_block(rec):
|
||||
src = rec["source"]
|
||||
line = common.has_line(rec)
|
||||
@@ -973,17 +990,9 @@ def source_block(rec):
|
||||
]
|
||||
if src.get("decision") or src.get("decision_text"):
|
||||
rows.append(fact("Decision", src.get("decision_text", "") or words.DECISIONS.get(src.get("decision", ""), src.get("decision", ""))))
|
||||
licence_note = (f'<p>{esc(words.LICENCE_NOTES[licence])}</p>' if licence in words.LICENCE_NOTES else "")
|
||||
permission = ""
|
||||
if licence == "stated-permission" and src.get("permission_quote"):
|
||||
url = src.get("permission_url", "")
|
||||
permission = f"""<figure class="quote">
|
||||
<blockquote{f' cite="{esc(url)}"' if url else ""}><p>{esc(src["permission_quote"])}</p></blockquote>
|
||||
<figcaption>
|
||||
<p class="quote__who">Said by {esc(src.get("permission_by", ""))} on {esc(src.get("permission_date", ""))}.</p>
|
||||
{f'<p>Read at {ext_link(url)}.</p>' if url else ""}
|
||||
</figcaption>
|
||||
</figure>"""
|
||||
permission = permission_figure(src)
|
||||
licence_note = (f'<p>{esc(words.LICENCE_NOTES[licence])}{" The statement is quoted below." if permission else ""}</p>'
|
||||
if licence in words.LICENCE_NOTES else "")
|
||||
licence_text = (f'<h3 class="block__sub">What the source says</h3>{licence_note}{Markup(permission)}{record_text(src["licence_text"])}'
|
||||
'<p class="note">With the page it was read on. Not legal advice.</p>') if src.get("licence_text") else ""
|
||||
return block("source-title", "Source and licence", facts(*rows) + Markup(licence_text))
|
||||
@@ -1005,16 +1014,13 @@ def logo_block(rec):
|
||||
sh = rec.get("shield", {})
|
||||
status = sh.get("status", "")
|
||||
if not common.shield_url(rec):
|
||||
# No logo file: one line, the status and the record's note.
|
||||
lead = {"no-logo-exists": "No logo", "logo-not-found": "Logo not found",
|
||||
"use-real-logo": "Logo not included"}.get(status, "No logo file")
|
||||
# No logo file. The two states say different things: the trail has no emblem of its
|
||||
# own, or it has (or may have) one and no usable artwork of it was found.
|
||||
lead = {"no-logo-exists": "No emblem of its own",
|
||||
"logo-not-found": "Emblem not found"}.get(status, "No logo file")
|
||||
why = {"logo-not-found": " An emblem exists or may exist, but no usable artwork of it was found "
|
||||
"at a source the dataset allows."}.get(status, "")
|
||||
note = sh.get("note", "")
|
||||
# "use-real-logo" without a file: the trail has a logo, but no copy is here.
|
||||
why = ""
|
||||
if status == "use-real-logo":
|
||||
holder = sh.get("logo_owner") or sh.get("contact") or ""
|
||||
why = (f" The trail has a logo{', held by ' + str(esc(holder)) if holder else ''}, "
|
||||
"but no copy of it is in this dataset.")
|
||||
return block("logo-title", "Logo", Markup(
|
||||
f'<p class="record-text"><strong>{esc(lead)}.</strong>{why}{" " + common.rich(note) if note else ""}</p>'))
|
||||
rows = [
|
||||
@@ -1096,6 +1102,45 @@ def about_data(rec, site):
|
||||
</details>"""
|
||||
|
||||
|
||||
HISTORY_LABELS = {"declined": "Request declined"}
|
||||
|
||||
|
||||
def history_entry(e):
|
||||
"""One entry of the record's [[history]], as a list item."""
|
||||
outcome = e.get("outcome", "")
|
||||
label = HISTORY_LABELS.get(outcome, "")
|
||||
url = e.get("basis_url", "")
|
||||
basis = esc(e.get("basis", ""))
|
||||
link = f' <a href="{esc(url)}">{esc(url)}</a>' if url else ""
|
||||
fields = "".join(f"<li><code>{esc(f)}</code></li>" for f in e.get("fields", []))
|
||||
date = esc(e.get("date", ""))
|
||||
return f"""<li class="history__entry history__entry--{esc(outcome)}">
|
||||
<p class="history__head"><time datetime="{date}">{date}</time>{f' <strong class="history__outcome">{esc(label)}</strong>' if label else ""}</p>
|
||||
<p class="history__change">{esc(e.get("change", ""))}</p>
|
||||
<p class="history__basis"><span class="history__label">Basis:</span> {basis}{link}</p>
|
||||
<p class="history__who"><span class="history__label">Asked by:</span> {esc(e.get("asked_by", ""))}</p>
|
||||
<ul class="history__fields" aria-label="Fields it concerns">{fields}</ul>
|
||||
</li>"""
|
||||
|
||||
|
||||
def history_section(rec):
|
||||
"""Who asked for what on this record, on what evidence, and what was declined: collapsed,
|
||||
beside "About this data". Left out when the record has no history."""
|
||||
entries = [e for e in rec.get("history", []) if isinstance(e, dict)]
|
||||
if not entries:
|
||||
return ""
|
||||
count = len(entries)
|
||||
return f"""<details class="about-data about-data--history" id="record-history">
|
||||
<summary><h2 id="record-history-title">History of this record</h2>
|
||||
<span class="about-data__hint">What was changed or asked for, on what evidence, and who asked, oldest first ({count} entr{"y" if count == 1 else "ies"})</span></summary>
|
||||
<div class="about-data__body detail__main">
|
||||
<ol class="history">
|
||||
{"".join(history_entry(e) for e in entries)}
|
||||
</ol>
|
||||
</div>
|
||||
</details>"""
|
||||
|
||||
|
||||
def page_foot(rec, site):
|
||||
"""The plain lines under the hiker's part: not for navigation, and how to report a problem."""
|
||||
report = ""
|
||||
@@ -1224,6 +1269,7 @@ def render(rec, site, records=None):
|
||||
{onward(rec, records)}
|
||||
{page_foot(rec, site)}
|
||||
{about_data(rec, site)}
|
||||
{history_section(rec)}
|
||||
</div>"""
|
||||
return rec["name"], description(rec), body, has_map
|
||||
|
||||
|
||||
+3
-4
@@ -72,8 +72,7 @@ LICENCES = {
|
||||
}
|
||||
LICENCE_NOTES = {
|
||||
"stated-permission": ("Shared with permission. The holder has said in writing that this track may be "
|
||||
"shared; the statement is quoted below. It is not public domain and not a "
|
||||
"Creative Commons licence."),
|
||||
"shared. It is not public domain and not a Creative Commons licence."),
|
||||
}
|
||||
LICENCE_URLS = {
|
||||
"us-gov-public-domain": "https://www.usa.gov/government-works",
|
||||
@@ -94,8 +93,8 @@ POLICIES = {
|
||||
}
|
||||
SHIELD_STATUS = {
|
||||
"use-real-logo": ("Logo in use", "The trail has a logo"),
|
||||
"no-logo-exists": ("No logo", "No logo exists for this trail"),
|
||||
"logo-not-found": ("Logo not found", "No logo file was found"),
|
||||
"no-logo-exists": ("No emblem of its own", "The trail has no emblem of its own"),
|
||||
"logo-not-found": ("Emblem not found", "An emblem exists or may exist, but no usable artwork of it was found"),
|
||||
}
|
||||
ACCESS = {"free": "Free", "purchase": "Purchase"}
|
||||
DECISIONS = {"included-named": "Included with its name"}
|
||||
|
||||
Reference in new issue
Block a user