diff options
| author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-26 11:38:40 +0100 |
|---|---|---|
| committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-12-26 11:38:40 +0100 |
| commit | cb8d90be7e405d251dbb7f615701b69f4674e1ec (patch) | |
| tree | 429c9ad964fe8a7636924bf44bcad3346da0cb23 | |
| parent | 7419eab1f7cb680a6a950b617096cb75ad429c43 (diff) | |
EFA suggestions: show expected arrival time2.17.39
| -rwxr-xr-x | lib/Travelynx/Controller/Traveling.pm | 3 | ||||
| -rw-r--r-- | templates/_suggestions_efa.html.ep | 5 |
2 files changed, 6 insertions, 2 deletions
diff --git a/lib/Travelynx/Controller/Traveling.pm b/lib/Travelynx/Controller/Traveling.pm index 5595e3c..30c579e 100755 --- a/lib/Travelynx/Controller/Traveling.pm +++ b/lib/Travelynx/Controller/Traveling.pm @@ -1379,7 +1379,8 @@ sub station { destination: for my $dest (@destinations) { for my $stop ( $dep->route_post ) { if ( $stop->full_name eq $dest->{name} ) { - push( @suggestions, [ $dep, $dest ] ); + push( @suggestions, + [ $dep, $dest, $stop->arr ] ); next destination; } } diff --git a/templates/_suggestions_efa.html.ep b/templates/_suggestions_efa.html.ep index 68fb4a9..bca5d74 100644 --- a/templates/_suggestions_efa.html.ep +++ b/templates/_suggestions_efa.html.ep @@ -1,6 +1,6 @@ <ul class="collection departures connections"> % for my $res (@{$suggestions}) { - % my ($dep, $dest) = @{$res}; + % my ($dep, $dest, $via_arr) = @{$res}; % my $row_class = ''; % my $link_class = 'action-checkin'; % if ($dep->is_cancelled) { @@ -25,6 +25,9 @@ % else { %= $dep->datetime->strftime('%H:%M') % } + % if ($via_arr) { + → <%= $via_arr->strftime('%H:%M') %> + % } % if ($dep->delay) { %= sprintf('(%+d)', $dep->delay) % } |
