From 333659cc0fc9bd1a2429a1d4fd644b509de9897b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at> 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 49ef42e..270ac94 100644 --- a/commonBody.html +++ b/commonBody.html @@ -75,16 +75,6 @@ </li> {% endif %} -{% if attribute(tags, 'contact:website') %} -<li class='hasSymbol'> - <i class="fa fa-globe" aria-hidden="true"></i> - <span class='key'>{{ keyTrans('website') }}:</span> - <span class='value'> - <a href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a> - </span> -</li> -{% 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 b0e6274..a0db52f 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -13,6 +13,26 @@ </li> {% endif %} +{% if tags.website %} +<li class='hasSymbol'> + <i class="fa fa-globe" aria-hidden="true"></i> + <span class='key'>{{ keyTrans('website') }}:</span> + <span class='value'> + <a href='{{ tags.website }}'>{{ tags.website }}</a> + </span> +</li> +{% endif %} + +{% if attribute(tags, 'contact:website') %} +<li class='hasSymbol'> + <i class="fa fa-globe" aria-hidden="true"></i> + <span class='key'>{{ keyTrans('website') }}:</span> + <span class='value'> + <a href='{{ attribute(tags, 'contact:website') }}'>{{ attribute(tags, 'contact:website') }}</a> + </span> +</li> +{% endif %} + {% if tags.phone %} <li class='hasSymbol'> <i class="fa fa-phone" aria-hidden="true"></i> @@ -33,6 +53,16 @@ </li> {% endif %} +{% if tags.phone %} +<li class='hasSymbol'> + <i class="fa fa-phone" aria-hidden="true"></i> + <span class='key'>{{ keyTrans('phone') }}:</span> + <span class='value'> + <a href='tel:{{ tags.phone }}'>{{ tags.phone }}</a> + </span> +</li> +{% endif %} + {% if attribute(tags, 'contact:email') %} <li class='hasSymbol'> <i class="fa fa-envelope" aria-hidden="true"></i>