From 6594d74edd87b350d2c9f1e510429a040cd402b1 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 12 Nov 2022 11:10:58 +0100 Subject: show expected utilization alongsie train route --- templates/_checked_in.html.ep | 28 ++++++++++++++++++++-------- 1 file changed, 20 insertions(+), 8 deletions(-) (limited to 'templates/_checked_in.html.ep') diff --git a/templates/_checked_in.html.ep b/templates/_checked_in.html.ep index 761849d..d2439ee 100644 --- a/templates/_checked_in.html.ep +++ b/templates/_checked_in.html.ep @@ -219,18 +219,24 @@ % for my $station (@{$journey->{route_after}}) { <%= $station->[0] %> + + % if ($station->[1]{load}{SECOND}) { + % my ($first, $second) = load_icon($station->[1]{load}); + + % } % if ($station->[2] and $station->[2] eq 'cancelled') { - entfällt + entfällt % } % elsif ($station->[1]{rt_arr}) { - <%= $station->[1]{rt_arr}->strftime('%H:%M') %> + <%= $station->[1]{rt_arr}->strftime('%H:%M') %> % } % elsif ($station->[1]{sched_arr}) { - <%= $station->[1]{sched_arr}->strftime('%H:%M') %> + <%= $station->[1]{sched_arr}->strftime('%H:%M') %> % } % elsif ($station->[2] and $station->[2] eq 'additional') { - Zusatzhalt + Zusatzhalt % } + % }

@@ -328,18 +334,24 @@ % my $is_dest = ($journey->{arr_name} and $station->[0] eq $journey->{arr_name}); <%= $station->[0] %> + + % if ($station->[1]{load}{SECOND}) { + % my ($first, $second) = load_icon($station->[1]{load}); + + % } % if ($station->[2] and $station->[2] eq 'cancelled') { - entfällt + entfällt % } % elsif ($station->[1]{rt_arr}) { - <%= $station->[1]{rt_arr}->strftime('%H:%M') %> + <%= $station->[1]{rt_arr}->strftime('%H:%M') %> % } % elsif ($station->[1]{sched_arr}) { - <%= $station->[1]{sched_arr}->strftime('%H:%M') %> + <%= $station->[1]{sched_arr}->strftime('%H:%M') %> % } % elsif ($station->[2] and $station->[2] eq 'additional') { - Zusatzhalt + Zusatzhalt % } + % if ($user->{sb_template}) { train -- cgit v1.2.3