Invite corrections: links on every page, issue forms, site checks
Each trail's page now offers "Report a problem" (a GitHub form with the record filled in), "Edit this record" and "History". The footer, the home page and About link to the forms for a wrong record and a missing trail, and Logos links to a form for a steward or creator who wants a track or logo removed or re-credited. The links are built only when repo_url in web/site.toml is a github.com repository. .github/ has the three issue forms and a pull request checklist, and the workflow also runs the site's tests and a build, on Python 3.12. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
This commit is contained in:
1 parent
1760ae4da9
commit
30c306ecc6
13 files changed
+377
-12
No files matched your search
+5
-2
@@ -60,8 +60,11 @@ def header(path, site):
|
||||
|
||||
|
||||
def footer(site):
|
||||
report = (f'<li><a href="{esc(site.issues_url)}">Report an error in a record</a></li>'
|
||||
if site.issues_url else "")
|
||||
report = ""
|
||||
if site.repo_url:
|
||||
report = (f'<li><a href="{esc(site.correction_url())}">Report an error in a record</a></li>'
|
||||
f'<li><a href="{esc(site.new_trail_url)}">Suggest a trail</a></li>'
|
||||
f'<li><a href="{esc(site.repo_url)}">Fix or add a trail</a></li>')
|
||||
return Markup(f"""<footer class="site-footer">
|
||||
<div class="container site-footer__grid">
|
||||
<div class="site-footer__about">
|
||||
|
||||
Reference in new issue
Block a user