From e83cfc5303bfd2625f067580df4c593b9a51af99 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 24 Sep 2022 16:11:51 +0200 Subject: connections: show expected arrival at destination --- templates/_connections.html.ep | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'templates/_connections.html.ep') diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index d84ac76..a69b1fe 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -1,6 +1,7 @@
% for my $res (@{$connections}) { - % my ($train, $via) = @{$res}; + % my ($train, $via, $via_arr) = @{$res}; + % $via_arr = $via_arr ? $via_arr->strftime('%H:%M') : q{}; % my $td_class = ''; % my $link_class = 'action-checkin'; % if ($train->is_cancelled) { @@ -23,10 +24,10 @@
% if ($checkin_from) { - <%= $via %> + <%= $via %>
<%= $via_arr %>
% } % else { - %= $via + <%= $via %>
<%= $via_arr %> % } % if ($train->{message_id}{96} or $train->{message_id}{97}) { warning -- cgit v1.2.3