From 6a8680317ba2d73444a7aa96d15a7dea4c2d4c61 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 14 Jan 2019 16:33:44 +0100 Subject: [PATCH 1/3] buildings-start_date: show localized start_date --- buildings-start_date.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/buildings-start_date.json b/buildings-start_date.json index 704d87b..e3b11bf 100644 --- a/buildings-start_date.json +++ b/buildings-start_date.json @@ -44,7 +44,12 @@ ], "description": [ "{% if tags.start_date %}", - "{{ tags.start_date }}", + "{{ tags.start_date|osmFormatDate({ format: 'short' }) }}", + "{% endif %}" + ], + "popupDescription": [ + "{% if tags.start_date %}", + "{{ tags.start_date|osmFormatDate }}", "{% endif %}" ], "markerSymbol": null, From d7e98c24d5c2c75952e8ef5a6654af304a2681d1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Mon, 14 Jan 2019 16:35:32 +0100 Subject: [PATCH 2/3] buildings-start_date: show 'unknown' when no start_date set --- buildings-start_date.json | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/buildings-start_date.json b/buildings-start_date.json index e3b11bf..bac2e32 100644 --- a/buildings-start_date.json +++ b/buildings-start_date.json @@ -45,11 +45,15 @@ "description": [ "{% if tags.start_date %}", "{{ tags.start_date|osmFormatDate({ format: 'short' }) }}", + "{% else %}", + "{{ trans('unknown') }}", "{% endif %}" ], "popupDescription": [ "{% if tags.start_date %}", "{{ tags.start_date|osmFormatDate }}", + "{% else %}", + "{{ trans('unknown') }}", "{% endif %}" ], "markerSymbol": null, From 17a54810720201571c242a1da29f634c4062236c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Tue, 15 Jan 2019 15:13:35 +0100 Subject: [PATCH 3/3] detailsBody, popupBody: format start_date and opening_date --- detailsBody.html | 4 ++-- popupBody.html | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/detailsBody.html b/detailsBody.html index 3c5a746..ca0b27f 100644 --- a/detailsBody.html +++ b/detailsBody.html @@ -145,7 +145,7 @@
  • {{ keyTrans('start_date') }}: - {{ enumerate(tags.start_date) }} + {{ tags.start_date|osmFormatDate }}
  • {% endif %} @@ -153,7 +153,7 @@
  • {{ keyTrans('opening_date') }}: - {{ enumerate(tags.opening_date) }} + {{ tags.opening_date|osmFormatDate }}
  • {% endif %} diff --git a/popupBody.html b/popupBody.html index d278846..b3ead54 100644 --- a/popupBody.html +++ b/popupBody.html @@ -151,7 +151,7 @@
  • {{ keyTrans('start_date') }}: - {{ enumerate(tags.start_date) }} + {{ tags.start_date|osmFormatDate }}
  • {% endif %} @@ -159,7 +159,7 @@
  • {{ keyTrans('opening_date') }}: - {{ enumerate(tags.opening_date) }} + {{ tags.opening_date|osmFormatDate }}
  • {% endif %}