Loading lib/DBInfoscreen/Controller/Stationboard.pm +2 −0 Original line number Diff line number Diff line Loading @@ -817,6 +817,7 @@ sub render_train { $departure->{trip_id} = $journey->id; $departure->{operator} = $journey->operator; $departure->{date} = $route->[0]{sched_dep} // $route->[0]{dep}; # Use HAFAS route as source of truth; ignore IRIS data $departure->{route_pre_diff} = []; Loading Loading @@ -1132,6 +1133,7 @@ sub train_details { my ( $route, $journey ) = @_; $res->{trip_id} = $journey->id; $res->{date} = $route->[0]{sched_dep} // $route->[0]{dep}; if ( not $res->{train_type} ) { my $train_type = $res->{train_type} = $journey->type // q{}; Loading lib/DBInfoscreen/I18N/en.pm +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ our %Lexicon = ( 'Hohe Auslastung erwartet' => 'High occupancy expected', 'Sehr hohe Auslastung erwartet' => 'Very high occupancy expected', 'Meldungen' => 'Messages', 'Fahrtverlauf' => 'Route', 'Fahrtverlauf am' => 'Route on', 'Betrieb' => 'Operator', 'Karte' => 'Map', 'Wagen' => 'Composition', Loading templates/_train_details.html.ep +4 −1 Original line number Diff line number Diff line Loading @@ -203,7 +203,10 @@ </ul> % } % if ($departure->{route_pre_diff} and $departure->{route_post_diff}) { %= l 'Fahrtverlauf' %= l 'Fahrtverlauf am' <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->subtract(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">◀</a> %= $departure->{date}->strftime('%d.%m.%Y') <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->add(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">▶</a> <ul class="mroute"> % for my $stop (@{$departure->{route_pre_diff}}) { <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> Loading Loading
lib/DBInfoscreen/Controller/Stationboard.pm +2 −0 Original line number Diff line number Diff line Loading @@ -817,6 +817,7 @@ sub render_train { $departure->{trip_id} = $journey->id; $departure->{operator} = $journey->operator; $departure->{date} = $route->[0]{sched_dep} // $route->[0]{dep}; # Use HAFAS route as source of truth; ignore IRIS data $departure->{route_pre_diff} = []; Loading Loading @@ -1132,6 +1133,7 @@ sub train_details { my ( $route, $journey ) = @_; $res->{trip_id} = $journey->id; $res->{date} = $route->[0]{sched_dep} // $route->[0]{dep}; if ( not $res->{train_type} ) { my $train_type = $res->{train_type} = $journey->type // q{}; Loading
lib/DBInfoscreen/I18N/en.pm +1 −1 Original line number Diff line number Diff line Loading @@ -56,7 +56,7 @@ our %Lexicon = ( 'Hohe Auslastung erwartet' => 'High occupancy expected', 'Sehr hohe Auslastung erwartet' => 'Very high occupancy expected', 'Meldungen' => 'Messages', 'Fahrtverlauf' => 'Route', 'Fahrtverlauf am' => 'Route on', 'Betrieb' => 'Operator', 'Karte' => 'Map', 'Wagen' => 'Composition', Loading
templates/_train_details.html.ep +4 −1 Original line number Diff line number Diff line Loading @@ -203,7 +203,10 @@ </ul> % } % if ($departure->{route_pre_diff} and $departure->{route_post_diff}) { %= l 'Fahrtverlauf' %= l 'Fahrtverlauf am' <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->subtract(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">◀</a> %= $departure->{date}->strftime('%d.%m.%Y') <a href="<%= url_for('train', train => stash('train'))->query({detailed => param('detailed'), past => param('past'), rt => param('rt'), hafas => param('hafas'), date => $departure->{date}->clone->add(days => 1)->strftime('%d.%m.%Y'), highlight => param('highlight') // stash('station')}) %>">▶</a> <ul class="mroute"> % for my $stop (@{$departure->{route_pre_diff}}) { <li class="<%= $stop->{isPast} ? 'past-stop' : 'future-stop' %>"> Loading