diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-16 19:58:37 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2025-06-16 19:58:37 +0200 |
commit | 68fcdf3d6ffc0253eb8f9f64631256fed3128549 (patch) | |
tree | 75eceb1d617f8ebfb1fa1d23ea59e5199b2e48da | |
parent | 8794612208241e57c9660b6b6b3533aa95c7461e (diff) |
HAFAS departure board: show load, if available
-rw-r--r-- | sass/src/common/local.scss | 6 | ||||
-rw-r--r-- | 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') { + <i class="material-icons tiny" aria-hidden="true"><%= $first %></i> + % } + <i class="material-icons tiny" aria-hidden="true"><%= $second %></i> + % } % for my $checkin (@{$checkin_by_train->{$result->id} // []}) { <span class="followee-checkin"> <i class="material-icons tiny" aria-label="Eine Person, der du folgst, ist hier eingecheckt">people</i> |