Themes: also show 'operator:website' and 'contact:website' as title icon if they are available

This commit is contained in:
Pieter Vander Vennet 2024-04-10 14:08:26 +02:00
parent 4a65ab69f8
commit 8526f4e941

View file

@ -182,8 +182,23 @@
"defaults",
"in_favourite"
],
"render": "<a href='{website}' target='_blank' rel='noopener'><img textmode='🌐' alt='website' src='./assets/layers/icons/website.svg'/></a>",
"condition": "website~*"
"mappings": [
{
"#": "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",