From 2d42acdd1577819d5115ac62aa7defbbb6b0a9a9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 19 Dec 2020 16:37:41 +0100 Subject: only show train sub-tye (ICE1/2/3/4, IC1/2) in detailed mode --- templates/app.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/app.html.ep b/templates/app.html.ep index 9902ff6..adbaa96 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -59,7 +59,7 @@ %= $departure->{train_line} % } % elsif ($departure->{train_no}) { -% if ($departure->{linetype} eq 'fern' and exists $ice_type->{$departure->{train_no}} and $ice_type->{$departure->{train_no}}[1]) { +% if (param('detailed') and $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