From 780cdafcf5e7f078a880d9875f2304f52dafbf0d Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Oct 2019 10:15:18 +0200 Subject: show related stations in departure list --- lib/Travelynx.pm | 1 + lib/Travelynx/Controller/Traveling.pm | 9 +++++---- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'lib') diff --git a/lib/Travelynx.pm b/lib/Travelynx.pm index 0c23a3a..477e19b 100755 --- a/lib/Travelynx.pm +++ b/lib/Travelynx.pm @@ -251,6 +251,7 @@ sub startup { ), station_name => ( $status->station ? $status->station->{name} : 'undef' ), + related_stations => [ $status->related_stations ], }; } elsif ( @station_matches > 1 ) { diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 43730bc..eebe27a 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -367,10 +367,11 @@ sub station { $self->render( 'departures', - ds100 => $status->{station_ds100}, - results => \@results, - station => $status->{station_name}, - title => "travelynx: $status->{station_name}", + ds100 => $status->{station_ds100}, + results => \@results, + station => $status->{station_name}, + related_stations => $status->{related_stations}, + title => "travelynx: $status->{station_name}", ); } $self->mark_seen( $self->current_user->{id} ); -- cgit v1.2.3