diff options
author | Daniel Friesel <derf@finalrewind.org> | 2022-09-24 16:11:51 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2022-09-24 16:11:51 +0200 |
commit | e83cfc5303bfd2625f067580df4c593b9a51af99 (patch) | |
tree | c74c713061ee8515796f5cad5afeca47e7157639 /templates/_connections.html.ep | |
parent | 208b818d7c5c503149ecc0b662c02b0b4af63a41 (diff) |
connections: show expected arrival at destination
Diffstat (limited to 'templates/_connections.html.ep')
-rw-r--r-- | templates/_connections.html.ep | 7 |
1 files changed, 4 insertions, 3 deletions
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 @@ <div><table class="striped"><tbody> % 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 @@ </td> <td class="<%= $td_class %>"> % if ($checkin_from) { - <a><%= $via %></a> + <a><%= $via %><br/><%= $via_arr %></a> % } % else { - %= $via + <%= $via %><br/><%= $via_arr %> % } % if ($train->{message_id}{96} or $train->{message_id}{97}) { <i class="material-icons tiny" aria-label="Zug ist überbesetzt">warning</i> |