From fe43c41d30b6b8ae23c192c16368ba3dc0c3cac9 Mon Sep 17 00:00:00 2001 From: Osmwithspace <> Date: Sun, 22 Jun 2025 00:15:50 +0200 Subject: [PATCH] move sauna_at_leisure to own directory --- .../sauna_at_leisure.json | 95 +++---------------- 1 file changed, 11 insertions(+), 84 deletions(-) rename assets/layers/{sauna => sauna_at_leisure}/sauna_at_leisure.json (68%) diff --git a/assets/layers/sauna/sauna_at_leisure.json b/assets/layers/sauna_at_leisure/sauna_at_leisure.json similarity index 68% rename from assets/layers/sauna/sauna_at_leisure.json rename to assets/layers/sauna_at_leisure/sauna_at_leisure.json index 47200c442..bf6082d12 100644 --- a/assets/layers/sauna/sauna_at_leisure.json +++ b/assets/layers/sauna_at_leisure/sauna_at_leisure.json @@ -16,6 +16,17 @@ } ], "tagRenderings": [ + { + "builtin": "sauna.*", + "override": { + "condition": { + "and+": [ + "sauna=yes" + ] + } + }, + "prefix": "sauna" + }, "images", "reviews", { @@ -104,90 +115,6 @@ ] } }, - { - "builtin": "opening_hours", - "override": { - "question": { - "en": "What are the opening hours of this sauna?", - "de": "Wie lauten die Öffnungszeiten von dieser Sauna?" - }, - "render": { - "en": "

Opening hours

{opening_hours_table(sauna:opening_hours)}", - "de": "

Öffnungszeiten

{opening_hours_table(sauna:opening_hours)}" - }, - "freeform": { - "key": "sauna:opening_hours", - "type": "opening_hours" - } - } - }, - { - "id": "charge_cost_rewritten", - "rewrite": { - "sourceString": [ - "{time_key}", - "{time_name}" - ], - "into": [ - [ - "2 hours", - { - "en": "2 hours", - "de": "2 Stunden" - } - ], - [ - "4 hours", - { - "en": "4 hours", - "de": "4 Stunden" - } - ], - [ - "day", - { - "en": "one day", - "de": "einen Tag" - } - ] - ] - }, - "renderings": [ - { - "id": "charge_{time_key}", - "question": { - "en": "What is the entrance fee for {time_name}?", - "de": "Was ist der Eintrittspreis für {time_name}?" - }, - "render": { - "en": "entrance fee for {time_name}: {sauna:charge}", - "de": "Eintrittspreis für {time_name}: {sauna:charge}" - }, - "freeform": { - "key": "sauna:charge", - "type": "currency", - "inline": true, - "postfixDistinguished": "{time_key}", - "addExtraTags": [ - "sauna:fee=yes" - ] - }, - "mappings": [ - { - "if": "sauna:fee=no", - "addExtraTags": [ - "sauna:charge=" - ], - "then": { - "en": "The sauna is free of charge", - "de": "Die Sauna ist kostenlos" - }, - "hideInAnswer": "sauna:fee!=no" - } - ] - } - ] - }, "contact", "fixme" ],