From 000fa2c26655455c572a06f31cffac2c725f7d71 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
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 @@
 </li>
 {% endif %}
 
+{% set address = tagsPrefix(tags, 'contact:') %}
+{% if address %}
+<li class='hasSymbol'>
+  <i class="fa fa-map-marker" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('address') }}:</span>
+  <span class='value'>
+    {{ attribute(tags, 'contact:street') }}
+    {{ attribute(tags, 'contact:housenumber') }},
+    {{ attribute(tags, 'contact:postcode') }}
+    {{ attribute(tags, 'contact:city') }}
+  </span>
+</li>
+{% endif %}
+
 {% if attribute(tags, 'name:etymology') %}
 <li class='hasSymbol'>
   <i class="fa fa-book" aria-hidden="true"></i>
diff --git a/popupBody.html b/popupBody.html
index 99016bf..462f113 100644
--- a/popupBody.html
+++ b/popupBody.html
@@ -21,6 +21,20 @@
 </li>
 {% endif %}
 
+{% set address = tagsPrefix(tags, 'contact:') %}
+{% if address %}
+<li class='hasSymbol'>
+  <i class="fa fa-map-marker" aria-hidden="true"></i>
+  <span class='key'>{{ keyTrans('address') }}:</span>
+  <span class='value'>
+    {{ attribute(tags, 'contact:street') }}
+    {{ attribute(tags, 'contact:housenumber') }},
+    {{ attribute(tags, 'contact:postcode') }}
+    {{ attribute(tags, 'contact:city') }}
+  </span>
+</li>
+{% endif %}
+
 {% if attribute(tags, 'name:etymology') %}
 <li class='hasSymbol'>
   <i class="fa fa-book" aria-hidden="true"></i>