From 333659cc0fc9bd1a2429a1d4fd644b509de9897b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 27 Aug 2017 20:31:09 +0200 Subject: [PATCH] common/detailsBody: unify contact information --- commonBody.html | 10 ---------- detailsBody.html | 30 ++++++++++++++++++++++++++++++ 2 files changed, 30 insertions(+), 10 deletions(-) diff --git a/commonBody.html b/commonBody.html index 49ef42e4..270ac944 100644 --- a/commonBody.html +++ b/commonBody.html @@ -75,16 +75,6 @@ {% endif %} -{% if attribute(tags, 'contact:website') %} -
  • - - {{ keyTrans('website') }}: - - {{ attribute(tags, 'contact:website') }} - -
  • -{% endif %} - {% if tags.opening_hours %} {% set oh_state = openingHoursState(tags.opening_hours) %} {% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %} diff --git a/detailsBody.html b/detailsBody.html index b0e62742..a0db52f7 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -13,6 +13,26 @@ {% endif %} +{% if tags.website %} +
  • + + {{ keyTrans('website') }}: + + {{ tags.website }} + +
  • +{% endif %} + +{% if attribute(tags, 'contact:website') %} +
  • + + {{ keyTrans('website') }}: + + {{ attribute(tags, 'contact:website') }} + +
  • +{% endif %} + {% if tags.phone %}
  • @@ -33,6 +53,16 @@
  • {% endif %} +{% if tags.phone %} +
  • + + {{ keyTrans('phone') }}: + + {{ tags.phone }} + +
  • +{% endif %} + {% if attribute(tags, 'contact:email') %}