diff options
author | Daniel Friesel <daniel.friesel@uos.de> | 2020-01-07 18:28:53 +0100 |
---|---|---|
committer | Daniel Friesel <daniel.friesel@uos.de> | 2020-01-07 18:28:53 +0100 |
commit | cd4e1246ca33b7f0056be36a640bc2a7340a6667 (patch) | |
tree | 827bd80c38fa84974413a1c7100e79673f4b2bdd /templates/app.html.ep | |
parent | 27bb2b67af84529cd5ee7a61e77008614d868c34 (diff) |
show planned IC/ICE type in detail view
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r-- | templates/app.html.ep | 4 |
1 files changed, 2 insertions, 2 deletions
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}}) { - <span class="trainsubtype"><%= $ice_type->{$departure->{train_no}} %></span> +% if (exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) { + <span class="trainsubtype"><%= $ice_type->{$departure->{train_no}}[1] %></span> % } <span class="trainno"><%= $departure->{train_no} %></span> % } |