summaryrefslogtreecommitdiff
path: root/templates/_departures_iris.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2023-10-27 18:34:02 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2023-10-27 18:34:02 +0200
commit7bf99b00a5064d231641b1309adacf6f1e8f42cb (patch)
tree35280814977f60e5b44ea3187dbde24ff8a8cf37 /templates/_departures_iris.html.ep
parent58b02bc69844e144ea51f8f044fd059a5bf230c9 (diff)
Use $train->type rather than firts part of $train->line for CSS class
In some cases (e.g. in Belgium), trains do not have a type, so the first part of $train->line is the train number instead.
Diffstat (limited to 'templates/_departures_iris.html.ep')
-rw-r--r--templates/_departures_iris.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_departures_iris.html.ep b/templates/_departures_iris.html.ep
index 56b5820..d96fd37 100644
--- a/templates/_departures_iris.html.ep
+++ b/templates/_departures_iris.html.ep
@@ -36,7 +36,7 @@
<i class="material-icons" aria-label="Keine Echtzeitdaten vorhanden" style="font-size: 16px;">gps_off</i>
% }
</a>
- <span class="dep-line <%= (split(/ /, $result->line))[0] %>">
+ <span class="dep-line <%= $result->type // q{} %>">
%= $result->line
</span>
<span class="dep-dest">