From 7c6177778dc91185594c8518b696ba9cf2091cd7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Thu, 12 Aug 2021 10:03:06 +0200 Subject: [PATCH] Popup/Details Body: show addresses with 'contact:' prefix --- detailsBody.html | 14 ++++++++++++++ popupBody.html | 14 ++++++++++++++ 2 files changed, 28 insertions(+) diff --git a/detailsBody.html b/detailsBody.html index 9bb0959..4cf1329 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -21,6 +21,20 @@ {% endif %} +{% set address = tagsPrefix(tags, 'contact:') %} +{% if address %} +
  • + + {{ keyTrans('address') }}: + + {{ attribute(tags, 'contact:street') }} + {{ attribute(tags, 'contact:housenumber') }}, + {{ attribute(tags, 'contact:postcode') }} + {{ attribute(tags, 'contact:city') }} + +
  • +{% endif %} + {% if attribute(tags, 'name:etymology') %}
  • diff --git a/popupBody.html b/popupBody.html index 99016bf..462f113 100644 --- a/popupBody.html +++ b/popupBody.html @@ -21,6 +21,20 @@
  • {% endif %} +{% set address = tagsPrefix(tags, 'contact:') %} +{% if address %} +
  • + + {{ keyTrans('address') }}: + + {{ attribute(tags, 'contact:street') }} + {{ attribute(tags, 'contact:housenumber') }}, + {{ attribute(tags, 'contact:postcode') }} + {{ attribute(tags, 'contact:city') }} + +
  • +{% endif %} + {% if attribute(tags, 'name:etymology') %}