diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2020-01-22 20:56:23 +0100 | 
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2020-01-22 20:56:23 +0100 | 
| commit | cc64206097ea4a5ece1f09e3533ada1ab123e990 (patch) | |
| tree | f66130520e8a299f17191ecca8a254476c780809 | |
| parent | 0913658790c2e6b2e22b874337e6a614964e2693 (diff) | |
map: show operator name
| -rw-r--r-- | lib/DBInfoscreen/Controller/Map.pm | 1 | ||||
| -rw-r--r-- | templates/route_map.html.ep | 6 | 
2 files changed, 7 insertions, 0 deletions
| diff --git a/lib/DBInfoscreen/Controller/Map.pm b/lib/DBInfoscreen/Controller/Map.pm index 03f27ab..8ff68d7 100644 --- a/lib/DBInfoscreen/Controller/Map.pm +++ b/lib/DBInfoscreen/Controller/Map.pm @@ -344,6 +344,7 @@ sub route {  					: undef,  				},  				train_no        => scalar $pl->{raw}{line}{additionalName}, +				operator        => scalar $pl->{raw}{line}{operator}{name},  				next_stop       => $next_stop,  				polyline_groups => [  					{ diff --git a/templates/route_map.html.ep b/templates/route_map.html.ep index 8cdf630..22d3768 100644 --- a/templates/route_map.html.ep +++ b/templates/route_map.html.ep @@ -137,3 +137,9 @@ tatsächlichen Position des Zugs abweichen.  Live-Tracking mit automatischer Kartenaktualisierung wird noch nicht  unterstützt.  </div> + +% if (my $op = stash('operator')) { +<div class="container" style="margin-top: 1ex; margin-bottom: 1ex; color: #555;"> +Betrieb: <%= $op %> +</div> +% } | 
