diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-06 09:06:38 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-10-06 09:06:38 +0200 |
commit | 87386d0c11ac4044fc29c5780a6635411df00eb7 (patch) | |
tree | 2088c6134e537ee6501e05203791f08ad7d2de41 /lib | |
parent | ad2180577a226ae6156551de4216941f2a5390ca (diff) |
EFA: Clickable route links
Diffstat (limited to 'lib')
-rw-r--r-- | lib/DBInfoscreen/Controller/Stationboard.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/DBInfoscreen/Controller/Stationboard.pm b/lib/DBInfoscreen/Controller/Stationboard.pm index 417fa0c..34a9efd 100644 --- a/lib/DBInfoscreen/Controller/Stationboard.pm +++ b/lib/DBInfoscreen/Controller/Stationboard.pm @@ -1556,6 +1556,7 @@ sub handle_efa { ( $delay and $delay > 0 and $delay < 5 ? 1 : 0 ), is_delayed => ( $delay and $delay >= 5 ? 1 : 0 ), occupancy => $result->occupancy, + station => $efa->stop->id, replaced_by => [], replacement_for => [], route_pre => [ map { $_->full_name } $result->route_pre ], @@ -1569,9 +1570,9 @@ sub handle_efa { $template, description => "Abfahrtstafel $station_name", departures => \@departures, - station => $station_name, + station => $efa->stop->name,, version => $self->config->{version}, - title => $station_name, + title => $efa->stop->name // $station_name, refresh_interval => $template eq 'app' ? 0 : 120, hide_opts => $hide_opts, hide_low_delay => $hide_low_delay, |