diff options
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r-- | templates/_train_details.html.ep | 4 |
1 files changed, 1 insertions, 3 deletions
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}) { <span class="train-line <%= $linetype %>"><%= $departure->{train_type} %> <%= $departure->{train_line} // $departure->{train_no} %></span> -% if ($departure->{train_line}) { - <span class="train-no"><%= $departure->{train_no} %></span> -% } + <span class="train-no"><%= $departure->{train_line} ? $departure->{train_no} : q{} %></span> % } % else { <span class="train-line"><%= $departure->{train} // q{???} %></span> |