From 394247e6d83519073307bc1955fc56086dc0958f Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Sat, 12 Aug 2017 21:41:56 +0200
Subject: [PATCH] commonBody: show address and phone number

---
 commonBody.html | 23 +++++++++++++++++++++++
 1 file changed, 23 insertions(+)
 create mode 100644 commonBody.html

diff --git a/commonBody.html b/commonBody.html
new file mode 100644
index 0000000..f01130c
--- /dev/null
+++ b/commonBody.html
@@ -0,0 +1,23 @@
+<dl>
+
+{% set address = tagsPrefix(tags, 'addr:') %}
+{% if address %}
+<dt>
+<i class="fa fa-map-marker symbol" aria-hidden="true"></i>
+{{ keyTrans('addr') }}:
+</dt><dd>
+{{ attribute(tags, 'addr:street') }} {{ attribute(tags, 'addr:housenumber') }}, {{ attribute(tags, 'addr:postcode') }} {{ attribute(tags, 'addr:city') }}
+</dd>
+{% endif %}
+
+{% if tags.phone %}
+<dt>
+<i class="fa fa-phone symbol" aria-hidden="true"></i>
+{{ keyTrans('phone') }}:
+</dt>
+<dd>
+<a href='tel:{{ tags.phone }}'>{{ tags.phone }}</a>
+</dd>
+{% endif %}
+
+</dl>