From 29d99fe140ad1ec9670b89cf33155c989024adfb Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Sep 2019 11:54:19 +0200 Subject: show arrival times in destination selection --- templates/_checked_in.html.ep | 25 +++++++++++-------------- 1 file changed, 11 insertions(+), 14 deletions(-) diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index a1ac08e..7219b9e 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -198,14 +198,12 @@

Ziel wählen:

- % my $is_after = 0; % for my $station (@{$journey->{route_after}}) { - % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { - - % } - % else { - - % } + % }
<%= $station->[0] %>
<%= $station->[0] %>
<%= $station->[0] %> + % if ($station->[1]{rt_arr}) { + <%= $station->[1]{rt_arr}->strftime('%H:%M') %> + % } +
@@ -246,14 +244,13 @@ Ziel ändern? - % my $is_after = 0; % for my $station (@{$journey->{route_after}}) { - % if ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}) { - - % } - % else { - - % } + % my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}); + % }
<%= $station->[0] %>
<%= $station->[0] %>
<%= $station->[0] %> + % if ($station->[1]{rt_arr}) { + <%= $station->[1]{rt_arr}->strftime('%H:%M') %> + % } +
-- cgit v1.2.3