summaryrefslogtreecommitdiff
path: root/templates/_train_details.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/_train_details.html.ep
parentbdae52f5a17452e66426aab03bef9867d7a3233d (diff)
only show planned IC(E) type for long-distance trains
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index 19c7061..05f4dec 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -112,7 +112,7 @@
<a class="smallbutton" href="/_wr/<%= $departure->{train_no} %>/<%= $departure->{wr_link} %>"><i class="material-icons" aria-hidden="true">train</i> Wagenreihung
</a>
% }
-% elsif ($icetype and $icetype->[1] and $departure->{train_type} ne 'Bus') {
+% elsif ($icetype and $icetype->[1] and $linetype eq 'fern') {
<span class="disabledbutton"><i class="material-icons" aria-hidden="true">train</i> Plan: <%= $icetype->[0] %></span>
% }
% for my $link (@{$departure->{links}}) {