|
|
@ -46,10 +46,14 @@ |
|
|
|
"{% set selected = false %}", |
|
|
|
"", |
|
|
|
"{% for master in masters %}", |
|
|
|
" {% set _p = const[master.tags.network].priority|default(4) %}", |
|
|
|
" {% set masterNetwork = '' %}", |
|
|
|
" {% for n in master.tags.network|split(';') %}", |
|
|
|
" {% if n|matches('cn$') %}{% set masterNetwork = n %}{% endif %}", |
|
|
|
" {% endfor %}", |
|
|
|
" {% set _p = const[masterNetwork].priority|default(4) %}", |
|
|
|
" {% if _p < priority %}", |
|
|
|
" {% set priority = _p %}", |
|
|
|
" {% set network = master.tags.network %}", |
|
|
|
" {% set network = masterNetwork %}", |
|
|
|
" {% endif %}", |
|
|
|
" {% if master.tags.ref %}", |
|
|
|
" {% set refs = refs|merge([ master.tags.ref ]) %}", |
|
|
@ -67,10 +71,14 @@ |
|
|
|
"<h4>Routes</h4>", |
|
|
|
"<ul class='overpass-layer-list'>", |
|
|
|
"{% for master in masters %}", |
|
|
|
" {% set masterNetwork = '' %}", |
|
|
|
" {% for n in master.tags.network|split(';') %}", |
|
|
|
" {% if n|matches('cn$') %}{% set masterNetwork = n %}{% endif %}", |
|
|
|
" {% endfor %}", |
|
|
|
" <li data-object=\"{{ master.id }}\">", |
|
|
|
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: const[master.tags.network].color|default(const[''].color) })|raw }}</div></span>", |
|
|
|
" <span class='markerParent'><div class='marker'>{{ markerLine({ width: 4, color: const[masterNetwork].color|default(const[''].color) })|raw }}</div></span>", |
|
|
|
" <span class='title'>{% 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 %}</span>", |
|
|
|
" <span class='description'>{{ tagTrans('network', master.tags.network) }}</span>", |
|
|
|
" <span class='description'>{{ tagTrans('network', masterNetwork) }}</span>", |
|
|
|
" </li>", |
|
|
|
"{% endfor %}", |
|
|
|
"</ul>" |
|
|
|