From ad4fa1f231d46a0f8b4b85d838a5b19b1126dab4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= 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 eb9f27dc4..b01436893 100644 --- a/commonBody.html +++ b/commonBody.html @@ -23,6 +23,20 @@ {% 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] %} +
  • + + {{ keyTrans('opening_hours') }}: + + {{ trans(oh_state) }}
    + {{ tags.opening_hours }} +
    +
  • +{% endif %} + {% set payment = tagsPrefix(tags, 'payment:') %} {% if payment %}