Commit 780cdafc authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

show related stations in departure list

parent daa05870
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -251,6 +251,7 @@ sub startup {
					),
					station_name =>
					  ( $status->station ? $status->station->{name} : 'undef' ),
					related_stations => [ $status->related_stations ],
				};
			}
			elsif ( @station_matches > 1 ) {
+5 −4
Original line number Diff line number Diff line
@@ -370,6 +370,7 @@ sub station {
			ds100            => $status->{station_ds100},
			results          => \@results,
			station          => $status->{station_name},
			related_stations => $status->{related_stations},
			title            => "travelynx: $status->{station_name}",
		);
	}
+6 −3
Original line number Diff line number Diff line
<div class="row">
	<div class="col s12 center-align"><b>
		%= $station
	</b></div>
	<div class="col s12 center-align">
		<b><%= $station %></b>
		% for my $related_station (sort { $a->{name} cmp $b->{name} } @{$related_stations}) {
			<br/><%= $related_station->{name} %>
		% }
	</div>
</div>
% my $status = $self->get_user_status;
% my $have_connections = 0;