From 871287f1af916891f63c2b7d7c5ec09d5452d5c9 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sun, 5 May 2019 09:58:44 +0200 Subject: fix train no mixups in moreinfo view --- templates/_train_details.html.ep | 4 +--- templates/app.html.ep | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep index 5e904d9..b1dfd13 100644 --- a/templates/_train_details.html.ep +++ b/templates/_train_details.html.ep @@ -3,9 +3,7 @@ % if ($departure->{train_no} or $departure->{train_line}) { <%= $departure->{train_type} %> <%= $departure->{train_line} // $departure->{train_no} %> -% if ($departure->{train_line}) { - <%= $departure->{train_no} %> -% } + <%= $departure->{train_line} ? $departure->{train_no} : q{} %> % } % else { <%= $departure->{train} // q{???} %> diff --git a/templates/app.html.ep b/templates/app.html.ep index df4bb6f..462f27e 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -50,7 +50,7 @@