Skip to content
GitLab
Explore
Sign in
derf
db-infoscreen
Compare revisions
568c71926e3ed851a539d7b6196a4279d8527dce to 754719a87ad90bde4cb7406ef6f7874915375be7
Commits on Source (2)
update cpanfile.snapshot
· 084f3d05
Birte Kristina Friesel
authored
Apr 05, 2024
084f3d05
show all known operators
· 754719a8
Birte Kristina Friesel
authored
Apr 05, 2024
754719a8
Hide whitespace changes
Inline
Side-by-side
cpanfile.snapshot
View file @
754719a8
...
...
@@ -1842,18 +1842,18 @@ DISTRIBUTIONS
Test::Pod 0
Travel::Status::DE::IRIS 1.2
perl v5.20.0
Travel-Status-DE-DeutscheBahn-6.0
0
pathname: D/DE/DERF/Travel-Status-DE-DeutscheBahn-6.0
0
.tar.gz
provides:
Travel::Status::DE::DeutscheBahn 6.0
0
Travel::Status::DE::HAFAS 6.0
0
Travel::Status::DE::HAFAS::Journey 6.0
0
Travel::Status::DE::HAFAS::Location 6.0
0
Travel::Status::DE::HAFAS::Message 6.0
0
Travel::Status::DE::HAFAS::Polyline 6.0
0
Travel::Status::DE::HAFAS::Product 6.0
0
Travel::Status::DE::HAFAS::Stop 6.0
0
Travel::Status::DE::HAFAS::StopFinder 6.0
0
Travel-Status-DE-DeutscheBahn-6.0
1
pathname: D/DE/DERF/Travel-Status-DE-DeutscheBahn-6.0
1
.tar.gz
provides:
Travel::Status::DE::DeutscheBahn 6.0
1
Travel::Status::DE::HAFAS 6.0
1
Travel::Status::DE::HAFAS::Journey 6.0
1
Travel::Status::DE::HAFAS::Location 6.0
1
Travel::Status::DE::HAFAS::Message 6.0
1
Travel::Status::DE::HAFAS::Polyline 6.0
1
Travel::Status::DE::HAFAS::Product 6.0
1
Travel::Status::DE::HAFAS::Stop 6.0
1
Travel::Status::DE::HAFAS::StopFinder 6.0
1
requirements:
Carp 0
Class::Accessor 0.16
...
...
lib/DBInfoscreen/Controller/Stationboard.pm
View file @
754719a8
...
...
@@ -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
->
{
operator
s
}
=
[
$journey
->
operator
s
]
;
$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
->
{
operator
s
}
=
[
$journey
->
operator
s
]
;
$res
->
{
route_post_diff
}
=
$route
;
...
...
templates/_train_details.html.ep
View file @
754719a8
...
...
@@ -376,8 +376,8 @@
% }
</ul> <!-- mroute -->
% }
% if ($departure->{operator}) {
<div class="details">Betrieb: <%= $departure->{operator
}
%></div>
% if ($departure->{operator
s} and @{$departure->{operators} // []
}) {
<div class="details">Betrieb: <%=
join(q{, }, @{
$departure->{operator
s} // [] } )
%></div>
% }
% if ($departure->{details} and @{$departure->{details}}) {
<div class="details">Details:
...
...