summaryrefslogtreecommitdiff
path: root/templates/app.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2020-10-25 15:40:13 +0100
committerDaniel Friesel <derf@finalrewind.org>2020-10-25 15:40:13 +0100
commit717cc78f5a8c34c687eabed6b9e4babd300620a3 (patch)
treecea9fa2edff36c406658943355b608fba8fb331b /templates/app.html.ep
parentbdae52f5a17452e66426aab03bef9867d7a3233d (diff)
only show planned IC(E) type for long-distance trains
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r--templates/app.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index f69763e..f0143cc 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -58,7 +58,7 @@
%= $departure->{train_line}
% }
% elsif ($departure->{train_no}) {
-% if (exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) {
+% if ($departure->{linetype} eq 'fern' and exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) {
<span class="trainsubtype" aria-hidden="true"><%= $ice_type->{$departure->{train_no}}[1] %></span>
% }
<span class="trainno"><%= $departure->{train_no} %></span>