summaryrefslogtreecommitdiff
path: root/templates/_departures_hafas.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2025-06-16 19:58:37 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2025-06-16 19:58:37 +0200
commit68fcdf3d6ffc0253eb8f9f64631256fed3128549 (patch)
tree75eceb1d617f8ebfb1fa1d23ea59e5199b2e48da /templates/_departures_hafas.html.ep
parent8794612208241e57c9660b6b6b3533aa95c7461e (diff)
HAFAS departure board: show load, if available
Diffstat (limited to 'templates/_departures_hafas.html.ep')
-rw-r--r--templates/_departures_hafas.html.ep7
1 files changed, 7 insertions, 0 deletions
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>