diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2023-10-27 18:34:02 +0200 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2023-10-27 18:34:02 +0200 |
commit | 7bf99b00a5064d231641b1309adacf6f1e8f42cb (patch) | |
tree | 35280814977f60e5b44ea3187dbde24ff8a8cf37 /templates/_connections.html.ep | |
parent | 58b02bc69844e144ea51f8f044fd059a5bf230c9 (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/_connections.html.ep')
-rw-r--r-- | templates/_connections.html.ep | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_connections.html.ep b/templates/_connections.html.ep index 2a89d9b..97c53e0 100644 --- a/templates/_connections.html.ep +++ b/templates/_connections.html.ep @@ -36,7 +36,7 @@ % if ($train->platform) { <span>Gleis <%= $train->platform %></span> % } - <span class="dep-line <%= (split(/ /, $train->line))[0] %>"> + <span class="dep-line <%= $train->type // q{} %>"> %= $train->line </span> </span> |