From 7f2990959c497b3ff557d32e61a0e0f8ecb8a8f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 21 Aug 2021 10:19:36 +0200 Subject: [PATCH] cycle_routes, hiking_routes: format list of routes in member way popups --- cycle_routes.json | 12 ++++++++---- hiking_routes.json | 14 +++++++++----- 2 files changed, 17 insertions(+), 9 deletions(-) diff --git a/cycle_routes.json b/cycle_routes.json index 68a8b96..836fa7a 100644 --- a/cycle_routes.json +++ b/cycle_routes.json @@ -75,10 +75,14 @@ " {% for n in master.tags.network|split(';') %}", " {% if n|matches('cn$') %}{% set masterNetwork = n %}{% endif %}", " {% endfor %}", - "
  • ", - "
    {{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}
    ", - " {% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}", - " {{ tagTrans('network', masterNetwork) }}", + "
  • ", + "
    ", + "
    {{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}
    ", + "
    ", + "
    ", + "
    {{ tagTrans('network', masterNetwork) }}
    ", + "
    {% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% else %}{{ trans('unnamed') }}{% endif %}
    ", + "
    ", "
  • ", "{% endfor %}", "" diff --git a/hiking_routes.json b/hiking_routes.json index a31378b..3ba0c5f 100644 --- a/hiking_routes.json +++ b/hiking_routes.json @@ -58,11 +58,15 @@ " {% for n in master.tags.network|split(';') %}", " {% if n|matches('wn$') %}{% set masterNetwork = n %}{% endif %}", " {% endfor %}", - "
  • ", - "
    {{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}
    ", - " {% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% endif %}", - " {{ tagTrans('network', masterNetwork) }}", - "
  • ", + "
  • ", + "
    ", + "
    {{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}
    ", + "
    ", + "
    ", + "
    {{ tagTrans('network', masterNetwork) }}
    ", + "
    {% if master.tags.ref and master.tags.name %}{{ master.tags.ref }} - {{ master.tags.name|default(master.tags.ref) }}{% elseif master.tags.ref %}{{ master.tags.ref }}{% elseif master.tags.name %}{{ master.tags.name }}{% endif %}
    ", + "
    ", + "
  • ", "{% endfor %}", "" ],