From 6d45533c14a45b548080077bd154ee06af571bf3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 4 Oct 2019 23:27:45 +0200 Subject: mark cancelled stops in checkin view --- templates/_checked_in.html.ep | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 053904a..44d57dc 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -200,9 +200,15 @@ % for my $station (@{$journey->{route_after}}) { <%= $station->[0] %> - % if ($station->[1]{rt_arr}) { + % if ($station->[2] and $station->[2] eq 'cancelled') { + entfällt + % } + % elsif ($station->[1]{rt_arr}) { <%= $station->[1]{rt_arr}->strftime('%H:%M') %> % } + % elsif ($station->[2] and $station->[2] eq 'additional') { + Zusatzhalt + % } % } @@ -247,9 +253,15 @@ % for my $station (@{$journey->{route_after}}) { % my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}); <%= $station->[0] %> - % if ($station->[1]{rt_arr}) { + % if ($station->[2] and $station->[2] eq 'cancelled') { + entfällt + % } + % elsif ($station->[1]{rt_arr}) { <%= $station->[1]{rt_arr}->strftime('%H:%M') %> % } + % elsif ($station->[2] and $station->[2] eq 'additional') { + Zusatzhalt + % } % } -- cgit v1.2.3