From 85a38870b1696feb60c2ee5adffb71e814afef2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 18 Aug 2017 10:38:41 +0200 Subject: [PATCH] More contact information --- commonBody.html | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ detailsBody.html | 34 ++++++++++++++++++++++++++ 2 files changed, 96 insertions(+) diff --git a/commonBody.html b/commonBody.html index b01436893..49ef42e40 100644 --- a/commonBody.html +++ b/commonBody.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 %}
  • @@ -23,6 +43,48 @@
  • {% endif %} +{% if attribute(tags, 'contact:phone') %} +
  • + + {{ keyTrans('phone') }}: + + {{ attribute(tags, 'contact:phone') }} + +
  • +{% endif %} + +{% if attribute(tags, 'contact:email') or tags.email %} +
  • + + {{ keyTrans('contact') }}: + + + {% if attribute(tags, 'contact:email') %} + + + + {% endif %} + + {% if attribute(tags, 'email') %} + + + + {% endif %} + + +
  • +{% 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 27682fc39..b0e627421 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -23,6 +23,40 @@ {% endif %} +{% if attribute(tags, 'contact:phone') %} +
  • + + {{ keyTrans('phone') }}: + + {{ attribute(tags, 'contact:phone') }} + +
  • +{% endif %} + +{% if attribute(tags, 'contact:email') %} +
  • + + {{ keyTrans('email') }}: + + + {{ attribute(tags, 'contact:email') }} + + +
  • +{% endif %} + +{% if attribute(tags, 'email') %} +
  • + + {{ keyTrans('email') }}: + + + {{ attribute(tags, 'email') }} + + +
  • +{% endif %} + {% if tags.opening_hours %} {% set oh_state = openingHoursState(tags.opening_hours) %} {% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %}