Add link to theme documentation

This commit is contained in:
Pieter Vander Vennet 2024-06-19 00:10:57 +02:00
parent 515b481188
commit 1f3adde6e0
2 changed files with 7 additions and 0 deletions

View file

@ -200,6 +200,7 @@
"openIssueTracker": "File a bug",
"openMapillary": "Open Mapillary here",
"openOsmcha": "See latest edits made with {theme}",
"openThemeDocumentation": "Open the documentation for thematic map {name}",
"seeOnMapillary": "See this image on Mapillary",
"themeBy": "Theme maintained by {author}",
"title": "Copyright and attribution",

View file

@ -77,6 +77,7 @@
import ArrowDownTray from "@babeard/svelte-heroicons/mini/ArrowDownTray"
import Share from "@babeard/svelte-heroicons/solid/Share"
import ChevronRight from "@babeard/svelte-heroicons/solid/ChevronRight"
import DocumentChartBar from "@babeard/svelte-heroicons/outline/DocumentChartBar"
export let state: ThemeViewState
let layout = state.layout
@ -585,6 +586,11 @@
<Tr t={Translations.t.general.attribution.openIssueTracker} />
</a>
<a class="flex" href={"https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Themes/"+layout.id+".md"} target="_blank">
<DocumentChartBar class="h-6 w-6"/>
<Tr t={Translations.t.general.attribution.openThemeDocumentation.Subs({name: layout.title})}/>
</a>
<a class="flex" href="https://en.osm.town/@MapComplete" target="_blank">
<Mastodon class="h-6 w-6" />
<Tr t={Translations.t.general.attribution.followOnMastodon} />