From 0ca484a881e35aafd59c0d22ac0976d29e264ddb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= <skunk@xover.mud.at> Date: Fri, 3 Aug 2018 21:18:30 +0200 Subject: [PATCH] railway-routes: improve popup --- railway-routes.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/railway-routes.json b/railway-routes.json index c3e928f..39ac63c 100644 --- a/railway-routes.json +++ b/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>" ],