From ad4fa1f231d46a0f8b4b85d838a5b19b1126dab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at> Date: Fri, 18 Aug 2017 09:05:38 +0200 Subject: [PATCH] Show opening_hours & state --- commonBody.html | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/commonBody.html b/commonBody.html index eb9f27d..b014368 100644 --- a/commonBody.html +++ b/commonBody.html @@ -23,6 +23,20 @@ </li> {% endif %} +{% if tags.opening_hours %} +{% set oh_state = openingHoursState(tags.opening_hours) %} +{% set oh_css = { "open": "yes", "closed": "no", "unknown": "unknown" } %} +{% set oh_css = oh_css[oh_state] %} +<li class='hasSymbol'> + <i class="fa fa-clock-o {{ oh_css }}" aria-hidden="true"></i> + <span class='key'>{{ keyTrans('opening_hours') }}:</span> + <span class='value'> + {{ trans(oh_state) }}<br /> + {{ tags.opening_hours }} + </span> +</li> +{% endif %} + {% set payment = tagsPrefix(tags, 'payment:') %} {% if payment %} <li class='hasSymbol'>