forked from MapComplete/MapComplete
Themes: also show 'operator:website' and 'contact:website' as title icon if they are available
This commit is contained in:
parent
4a65ab69f8
commit
8526f4e941
1 changed files with 17 additions and 2 deletions
|
@ -182,8 +182,23 @@
|
||||||
"defaults",
|
"defaults",
|
||||||
"in_favourite"
|
"in_favourite"
|
||||||
],
|
],
|
||||||
"render": "<a href='{website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>",
|
"mappings": [
|
||||||
"condition": "website~*"
|
{
|
||||||
|
"#": "ignore-image-in-then",
|
||||||
|
"if": "website~*",
|
||||||
|
"then": "<a href='{website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"#": "ignore-image-in-then",
|
||||||
|
"if": "operator:website~*",
|
||||||
|
"then": "<a href='{operator:website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"#": "ignore-image-in-then",
|
||||||
|
"if": "context:website~*",
|
||||||
|
"then": "<a href='{contact:website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>"
|
||||||
|
}
|
||||||
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"id": "smokingicon",
|
"id": "smokingicon",
|
||||||
|
|
Loading…
Add table
Reference in a new issue