From 038b7d597eaf952165a1355a13d3e1afb23a2757 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 9 Jan 2015 20:10:06 +0100 Subject: clean: strike through all fields of a cancelled train --- templates/clean.html.ep | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/templates/clean.html.ep b/templates/clean.html.ep index cc87b0b..3514b87 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -12,13 +12,17 @@ % $via_cur++; % $route_str .= $stop . ($via_cur < $via_max ? ' - ' : q{}); % } +% my $extraclasses = q{}; +% if ($departure->{is_cancelled}) { +% $extraclasses .= ' cancelled'; +% }
  • % my $linetype = q{}; % if ( $departure->{train} =~ m{ ^ S \s? \d{1,2} $ }x ) { % $linetype = 'sbahn'; % } - + %= $departure->{train} % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { @@ -54,10 +58,6 @@ %= $route_str % } -% my $extraclasses = q{}; -% if ($departure->{is_cancelled}) { -% $extraclasses .= ' cancelled'; -% } %= $departure->{destination} @@ -80,11 +80,11 @@ % } % } % } - + %= $departure->{platform} - + % if ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) { % } -- cgit v1.2.3