From f0ba660417745900d84ab164a0cca398a092fa94 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Sat, 10 Aug 2024 17:32:40 +0200 Subject: train details: hide first class utilization if it is unknown --- templates/_train_details.html.ep | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index a0829b6..fd18623 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -280,7 +280,9 @@ <%= $stop->{name} %> % if ($stop->{load}{FIRST} or $stop->{load}{SECOND}) { % my ($text, $icon1, $icon2) = utilization_icon([$stop->{load}{FIRST}, $stop->{load}{SECOND}]); - + % if ($icon1 ne 'help_outline') { + + % } % } @@ -323,7 +325,9 @@ <%= stash('station_name') %> % if (my $u = $departure->{utilization}) { % my ($text, $icon1, $icon2) = utilization_icon($u); - + % if ($icon1 ne 'help_outline') { + + % } % } @@ -371,7 +375,9 @@ <%= $stop->{name} %> % if ($stop->{load}{FIRST} or $stop->{load}{SECOND}) { % my ($text, $icon1, $icon2) = utilization_icon([$stop->{load}{FIRST}, $stop->{load}{SECOND}]); - + % if ($icon1 ne 'help_outline') { + + % } % } -- cgit v1.2.3