From 68fcdf3d6ffc0253eb8f9f64631256fed3128549 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Mon, 16 Jun 2025 19:58:37 +0200 Subject: HAFAS departure board: show load, if available --- sass/src/common/local.scss | 6 +++--- templates/_departures_hafas.html.ep | 7 +++++++ 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/sass/src/common/local.scss b/sass/src/common/local.scss index 2ba0ffa..c8b00bb 100644 --- a/sass/src/common/local.scss +++ b/sass/src/common/local.scss @@ -122,12 +122,12 @@ ul.suggestions { } .departures .dep-dest { margin-left: 0.8rem; + i.material-icons { + vertical-align: middle; + } .followee-checkin { font-size: 0.9rem; display: block; - i.material-icons { - vertical-align: middle; - } } } diff --git a/templates/_departures_hafas.html.ep b/templates/_departures_hafas.html.ep index 012db61..5825ba0 100644 --- a/templates/_departures_hafas.html.ep +++ b/templates/_departures_hafas.html.ep @@ -41,6 +41,13 @@ % } % else { %= $result->destination + % if ($result->load and $result->load->{SECOND}) { + % my ($first, $second) = load_icon($result->load); + % if ($first ne 'help_outline') { + + % } + + % } % for my $checkin (@{$checkin_by_train->{$result->id} // []}) { people -- cgit v1.2.3