From cd4e1246ca33b7f0056be36a640bc2a7340a6667 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Tue, 7 Jan 2020 18:28:53 +0100 Subject: show planned IC/ICE type in detail view --- templates/app.html.ep | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'templates/app.html.ep') diff --git a/templates/app.html.ep b/templates/app.html.ep index d6d07b6..fd7c1f1 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -83,8 +83,8 @@ %= $departure->{train_line} % } % elsif ($departure->{train_no}) { -% if (exists $ice_type->{$departure->{train_no}}) { - <%= $ice_type->{$departure->{train_no}} %> +% if (exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) { + <%= $ice_type->{$departure->{train_no}}[1] %> % } <%= $departure->{train_no} %> % } -- cgit v1.2.3