From 717cc78f5a8c34c687eabed6b9e4babd300620a3 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 25 Oct 2020 15:40:13 +0100 Subject: only show planned IC(E) type for long-distance trains --- templates/_train_details.html.ep | 2 +- templates/app.html.ep | 2 +- 2 files changed, 2 insertions(+), 2 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 @@ Wagenreihung % } -% elsif ($icetype and $icetype->[1] and $departure->{train_type} ne 'Bus') { +% elsif ($icetype and $icetype->[1] and $linetype eq 'fern') { Plan: <%= $icetype->[0] %> % } % for my $link (@{$departure->{links}}) { 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]) { % } <%= $departure->{train_no} %> -- cgit v1.2.3