From 7beb073b8fb06505b3be5da8f93e4183e0eb4da9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sun, 26 Jan 2020 17:21:55 +0100 Subject: [PATCH] details/popup: include year_of_construction and end_date (if set) --- detailsBody.html | 20 ++++++++++++++++---- popupBody.html | 20 ++++++++++++++++---- 2 files changed, 32 insertions(+), 8 deletions(-) diff --git a/detailsBody.html b/detailsBody.html index 5e0da29..9bb0959 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -149,19 +149,31 @@ {% endif %} -{% if tags.start_date %} +{% if tags.year_of_construction or tags.start_date or tags.opening_date or tags.end_date %}
  • + +{% if tags.year_of_construction %} + {{ keyTrans('year_of_construction') }}: + {{ tags.year_of_construction|osmFormatDate }} +
    +{% endif %} + +{% if tags.start_date %} {{ keyTrans('start_date') }}: {{ tags.start_date|osmFormatDate }} -
  • +
    {% endif %} {% if tags.opening_date %} -
  • - {{ keyTrans('opening_date') }}: {{ tags.opening_date|osmFormatDate }} +{% endif %} + +{% if tags.end_date %} + {{ keyTrans('end_date') }}: + {{ tags.end_date|osmFormatDate }} +{% endif %}
  • {% endif %} diff --git a/popupBody.html b/popupBody.html index 8952dec..96c2d52 100644 --- a/popupBody.html +++ b/popupBody.html @@ -155,19 +155,31 @@ {{ wikipedia[2] }} {% endif %} -{% if tags.start_date %} +{% if tags.year_of_construction or tags.start_date or tags.opening_date or tags.end_date %}
  • + +{% if tags.year_of_construction %} + {{ keyTrans('year_of_construction') }}: + {{ tags.year_of_construction|osmFormatDate }} +
    +{% endif %} + +{% if tags.start_date %} {{ keyTrans('start_date') }}: {{ tags.start_date|osmFormatDate }} -
  • +
    {% endif %} {% if tags.opening_date %} -
  • - {{ keyTrans('opening_date') }}: {{ tags.opening_date|osmFormatDate }} +{% endif %} + +{% if tags.end_date %} + {{ keyTrans('end_date') }}: + {{ tags.end_date|osmFormatDate }} +{% endif %}
  • {% endif %}