Browse Source

railway-routes: improve popup

pedestrian
parent
commit
0ca484a881
  1. 8
      railway-routes.json

8
railway-routes.json

@ -32,10 +32,14 @@
"title": "",
"body": [
"<h4>Routes</h4>",
"<ul>",
"<ul style='padding-left: 0'>",
"{% for master in masters %}",
" {% set _color = '#' ~ master.tags.operator|default('')|md5|slice(0, 6) %}",
" <li data-object=\"{{ master.id }}\" style='list-style: none;'>{{ markerLine({ width: 4, color: _color })|raw }}<b>{{ master.tags.name|default(master.tags.ref) }}</b>{% if master.tags.network %} <i>{{ master.tags.operator }}</i>{% endif %}</li>",
" <li data-object=\"{{ master.id }}\" style='list-style: none;'>",
" {{ markerLine({ width: 4, color: _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 %}",
" <i style='color: #707070'>{{ master.tags.operator }}</i>",
" </li>",
"{% endfor %}",
"</ul>"
],

Loading…
Cancel
Save