From 7ba396f0fe3831f900a83f443e59d4e620733503 Mon Sep 17 00:00:00 2001 From: Nathan Hartley Date: Sun, 1 Jan 2023 17:37:56 -0500 Subject: [PATCH] Fixed custom body tag translation. --- paddling_amenities.yaml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/paddling_amenities.yaml b/paddling_amenities.yaml index 36f55c2..a0e5da7 100644 --- a/paddling_amenities.yaml +++ b/paddling_amenities.yaml @@ -23,7 +23,7 @@ feature: {% endif %} {% set constIndex = (key ~ "=" ~ value) %} - {% set amenity = const[constIndex] %} + {% set item = const[constIndex] %} title: | {{ localizedTag(tags, 'name') | default(localizedTag(tags, 'operator')) | default(localizedTag(tags, 'ref')) }} @@ -32,28 +32,28 @@ feature: body: |- {% if constIndex in ['canoe=put_in', 'leisure=slipway','canoe=portage'] %}
-
Surface
-
{% if attribute(tags, 'surface') %}{{ tagTrans('surface', tags.surface) }}{% endif %}
+
{{ keyTrans('surface') }}
+
{{ tagTrans('surface', attribute(tags, 'surface')) }
{{ keyTrans('description') }}
-
{{ localizedTag(tags, 'description') }}
+
{{ localizedTag(tags, attribute(tags, 'description')) }}
{{ keyTrans('access') }}
-
{{ tagTrans('access', tags.access) }}
+
{{ tagTrans('access', attribute(tags, 'access')) }}
{{ keyTrans('fee') }}
-
{{ tagTrans('fee', tags.fee) }}
+
{{ tagTrans('fee', attribute(tags, 'fee')) }}
{% if attribute(tags, 'mapillary') %}
Mapillary Photo
{% endif %} {% endif %} - markerSign: '{{ const[constIndex][''sign''] }}' + markerSign: '{{ item[''sign''] }}' priority: |- - {% if const[constIndex] is defined %} - {{ const[constIndex]['priority'] }} + {% if item is defined %} + {{ item['priority'] }} {% else %} 10 {% endif %}