Skip to content
Commits on Source (2)
......@@ -1842,18 +1842,18 @@ DISTRIBUTIONS
Test::Pod 0
Travel::Status::DE::IRIS 1.2
perl v5.20.0
Travel-Status-DE-DeutscheBahn-6.00
pathname: D/DE/DERF/Travel-Status-DE-DeutscheBahn-6.00.tar.gz
provides:
Travel::Status::DE::DeutscheBahn 6.00
Travel::Status::DE::HAFAS 6.00
Travel::Status::DE::HAFAS::Journey 6.00
Travel::Status::DE::HAFAS::Location 6.00
Travel::Status::DE::HAFAS::Message 6.00
Travel::Status::DE::HAFAS::Polyline 6.00
Travel::Status::DE::HAFAS::Product 6.00
Travel::Status::DE::HAFAS::Stop 6.00
Travel::Status::DE::HAFAS::StopFinder 6.00
Travel-Status-DE-DeutscheBahn-6.01
pathname: D/DE/DERF/Travel-Status-DE-DeutscheBahn-6.01.tar.gz
provides:
Travel::Status::DE::DeutscheBahn 6.01
Travel::Status::DE::HAFAS 6.01
Travel::Status::DE::HAFAS::Journey 6.01
Travel::Status::DE::HAFAS::Location 6.01
Travel::Status::DE::HAFAS::Message 6.01
Travel::Status::DE::HAFAS::Polyline 6.01
Travel::Status::DE::HAFAS::Product 6.01
Travel::Status::DE::HAFAS::Stop 6.01
Travel::Status::DE::HAFAS::StopFinder 6.01
requirements:
Carp 0
Class::Accessor 0.16
......
......@@ -856,9 +856,9 @@ sub render_train {
sub {
my ( $route, $journey ) = @_;
$departure->{trip_id} = $journey->id;
$departure->{operator} = $journey->operator;
$departure->{date} = $route->[0]{sched_dep} // $route->[0]{dep};
$departure->{trip_id} = $journey->id;
$departure->{operators} = [ $journey->operators ];
$departure->{date} = $route->[0]{sched_dep} // $route->[0]{dep};
# Use HAFAS route as source of truth; ignore IRIS data
$departure->{route_pre_diff} = [];
......@@ -1209,7 +1209,7 @@ sub train_details {
$res->{origin} = $journey->route_start;
$res->{destination} = $journey->route_end;
$res->{operator} = $journey->operator;
$res->{operators} = [ $journey->operators ];
$res->{route_post_diff} = $route;
......
......@@ -376,8 +376,8 @@
% }
</ul> <!-- mroute -->
% }
% if ($departure->{operator}) {
<div class="details">Betrieb: <%= $departure->{operator} %></div>
% if ($departure->{operators} and @{$departure->{operators} // []}) {
<div class="details">Betrieb: <%= join(q{, }, @{ $departure->{operators} // [] } ) %></div>
% }
% if ($departure->{details} and @{$departure->{details}}) {
<div class="details">Details:
......