From 9c7545183886cf118e92f30f9b796fb85eb4e901 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at>
Date: Fri, 1 Jan 2021 21:59:17 +0100
Subject: [PATCH] pt: more

---
 pt.json | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/pt.json b/pt.json
index 90893a9..d78e8b6 100644
--- a/pt.json
+++ b/pt.json
@@ -182,13 +182,15 @@
         "listStopsMarkerSign": null,
         "listStopsMarkerSymbol": "{{ markerCircle({ width: 5, color: color, fillOpacity: '1', radius: 3 })|raw }}",
         "listStopsExclude": "{{ not isStop or stopCount == 0 }}",
-        "listStopsTitle": "{% if tags %}{{ tags.name|default(stopName)|default(trans('unknown')) }}{% else %}<li>{{ trans('loading') }}</li>{% endif %}",
-        "listStopsDetails": "{{ refs|join(' · ') }}",
-        "listStopsDescription": [
+        "listStopsTitle": [
+          "{% if tags %}{{ tags.name|default(stopName)|default(trans('unknown')) }}{% else %}<li>{{ trans('loading') }}</li>{% endif %}<br/>",
+          "<i>{{ refs|join(' · ') }}</i>"
+        ],
+        "description": [
           "{% set stopTypes = [] %}",
           "{% if tags.railway in ['tram_stop'] %}{% set stopTypes = stopTypes|merge([ tagTrans('railway', tags.railway) ]) %}{% endif %}",
           "{% if tags.highway in ['bus_stop'] %}{% set stopTypes = stopTypes|merge([ tagTrans('highway', tags.highway) ]) %}{% endif %}",
-          "{{ enumerate(stopTypes) }}"
+          "{% if stopTypes|length %}{{ enumerate(stopTypes) }}{% elseif isStop %}{{ tagTrans('public_transport', 'stop_position') }}{% else %}{{ keyTrans('route') }}{% endif %}"
         ],
         "listRoutesExclude": "true",
         "style:stop": {
@@ -205,7 +207,7 @@
             "dashArray": "{% if not dirForward or not dirBackward %}27,8{% endif %}",
             "dashOffset": "{% if dirBackward %}28{% else %}0{% endif %}",
             "noClip": "{% if not dirForward or not dirBackward %}true{% else %}false{% endif %}",
-            "text": "{{ refs|join(' · ') }}             ",
+            "text1": "{{ refs|join(' · ') }}             ",
             "textRepeat": "1",
             "textOffset": "12",
             "pattern": "{% if dirForward and dirBackward %}{% else %}arrowHead{% endif %}",