From 88dc5283c4a7ddeb0938fb421a46c39c4fcdc682 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 20 Jan 2018 21:35:48 +0100 Subject: Improve formatting of detailed mode train numbers --- templates/clean.html.ep | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) (limited to 'templates') diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 3f6bcd0..e9cf1b7 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -49,15 +49,12 @@ % else { %= $departure->{train} % } - -% if (param('detailed')) { -% if ($departure->{train_line} and $departure->{train_no} -% and $departure->{train_line} ne $departure->{train_no}) { -
-%= $departure->{train_no} -
-% } +% if ($departure->{train_line} and $departure->{train_no} +% and $departure->{train_line} ne $departure->{train_no} +% and param('detailed')) { +
<%= $departure->{train_no} %>
% } + % if (@{$departure->{replaced_by}} or @{$departure->{replacement_for}}) {
% if (@{$departure->{replaced_by}}) { -- cgit v1.2.3