summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/DBInfoscreen/Controller/Map.pm1
-rw-r--r--templates/route_map.html.ep6
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>
+% }