forked from MapComplete/MapComplete
		
	Hide documentation link for unofficial themes (fix #2076), add OsmCha link
This commit is contained in:
		
							parent
							
								
									833b4142dc
								
							
						
					
					
						commit
						fde4e24abe
					
				
					 1 changed files with 20 additions and 12 deletions
				
			
		|  | @ -16,6 +16,7 @@ | ||||||
|   import Bug from "../../assets/svg/Bug.svelte" |   import Bug from "../../assets/svg/Bug.svelte" | ||||||
|   import ThemeViewState from "../../Models/ThemeViewState" |   import ThemeViewState from "../../Models/ThemeViewState" | ||||||
|   import DocumentChartBar from "@babeard/svelte-heroicons/outline/DocumentChartBar" |   import DocumentChartBar from "@babeard/svelte-heroicons/outline/DocumentChartBar" | ||||||
|  |   import DocumentMagnifyingGlass from "@babeard/svelte-heroicons/outline/DocumentMagnifyingGlass" | ||||||
| 
 | 
 | ||||||
|   export let state: ThemeViewState |   export let state: ThemeViewState | ||||||
| 
 | 
 | ||||||
|  | @ -48,12 +49,13 @@ | ||||||
|     <Tr t={Translations.t.general.attribution.openIssueTracker} /> |     <Tr t={Translations.t.general.attribution.openIssueTracker} /> | ||||||
|   </a> |   </a> | ||||||
| 
 | 
 | ||||||
|  |   {#if layout.official} | ||||||
|     <a |     <a | ||||||
|       class="flex" |       class="flex" | ||||||
|       href={"https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Themes/" + layout.id + ".md"} |       href={"https://github.com/pietervdvn/MapComplete/blob/develop/Docs/Themes/" + layout.id + ".md"} | ||||||
|       target="_blank" |       target="_blank" | ||||||
|     > |     > | ||||||
|     <DocumentChartBar class="h-6 w-6" /> |       <DocumentMagnifyingGlass class="h-6 w-6" /> | ||||||
|       <Tr |       <Tr | ||||||
|         t={Translations.t.general.attribution.openThemeDocumentation.Subs({ |         t={Translations.t.general.attribution.openThemeDocumentation.Subs({ | ||||||
|           name: layout.title, |           name: layout.title, | ||||||
|  | @ -61,6 +63,12 @@ | ||||||
|       /> |       /> | ||||||
|     </a> |     </a> | ||||||
| 
 | 
 | ||||||
|  |     <a class="flex" href={Utils.OsmChaLinkFor(31, layout.id)}> | ||||||
|  |       <DocumentChartBar class="h-6 w-6" /> | ||||||
|  |       <Tr t={Translations.t.general.attribution.openOsmcha.Subs({theme: layout.title})}/> | ||||||
|  |     </a> | ||||||
|  |   {/if} | ||||||
|  | 
 | ||||||
|   <a class="flex" href="https://en.osm.town/@MapComplete" target="_blank"> |   <a class="flex" href="https://en.osm.town/@MapComplete" target="_blank"> | ||||||
|     <Mastodon class="h-6 w-6" /> |     <Mastodon class="h-6 w-6" /> | ||||||
|     <Tr t={Translations.t.general.attribution.followOnMastodon} /> |     <Tr t={Translations.t.general.attribution.followOnMastodon} /> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue