From 7c98911738ac7bbc284f320ea7fc4ed47240246c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Fri, 26 Oct 2018 11:01:16 +0200 Subject: [PATCH] pt: show 'loading' on stops when not fully loaded yet or 'unknown' when unnamed (or can't be referenced from not loaded stop_area) --- pt.json | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pt.json b/pt.json index f4351c7..46451cf 100644 --- a/pt.json +++ b/pt.json @@ -60,7 +60,7 @@ "

Stops

" @@ -122,7 +122,7 @@ "listStopsMarkerSign": null, "listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}", "listStopsExclude": "{{ not isStop or stopCount == 0 }}", - "listStopsTitle": "{{ tags.name|default(stopName)|default(id) }}", + "listStopsTitle": "{% if tags %}{{ tags.name|default(stopName)|default(trans('unknown')) }}{% else %}
  • {{ trans('loading') }}
  • {% endif %}", "listStopsDescription": "{{ refs|join(' ยท ') }}", "listRoutesExclude": "true", "style:way": {