From 976acbed43591c6681e0c2344680232558a2e595 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sun, 19 May 2024 18:11:51 +0200 Subject: HAFAS, EFA backend: show expected occupancy in departure list --- templates/app.html.ep | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'templates') diff --git a/templates/app.html.ep b/templates/app.html.ep index 50f8a5a..214bee1 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -150,6 +150,18 @@ % } % else { +% } +% if ($departure->{load}{FIRST} or $departure->{load}{SECOND}) { +% my ($text, $icon1, $icon2) = utilization_icon([$departure->{load}{FIRST}, $departure->{load}{SECOND}]); + + + +% } +% elsif (my $o = $departure->{occupancy}) { + +% my ($text, $icon) = occupancy_icon($o); + + % } Gleis %= $departure->{platform} -- cgit v1.2.3