diff options
author | Daniel Friesel <derf@finalrewind.org> | 2015-01-09 20:10:06 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2015-01-09 20:10:06 +0100 |
commit | 038b7d597eaf952165a1355a13d3e1afb23a2757 (patch) | |
tree | d54901a8c96a3cce2cf2b84f91f5a9fd4d451a2a /templates | |
parent | 9b505325d686194e4ef0098438f84455698ab71a (diff) |
clean: strike through all fields of a cancelled train
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 14 |
1 files 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'; +% } <li> % my $linetype = q{}; % if ( $departure->{train} =~ m{ ^ S \s? \d{1,2} $ }x ) { % $linetype = 'sbahn'; % } -<span class="line <%= $linetype %>"> +<span class="line <%= $linetype %> <%= $extraclasses %>"> %= $departure->{train} </span> % if ($departure->{moreinfo} and @{$departure->{moreinfo}}) { @@ -54,10 +58,6 @@ %= $route_str </span> % } -% my $extraclasses = q{}; -% if ($departure->{is_cancelled}) { -% $extraclasses .= ' cancelled'; -% } <span class="dest <%= $extraclasses %>"> %= $departure->{destination} </span> @@ -80,11 +80,11 @@ % } % } % } -<span class="platform"> +<span class="platform <%= $extraclasses %>"> %= $departure->{platform} </span> </span> -<span class="time <%= ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) ? 'delayed' : q{} %>"> +<span class="time <%= ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) ? 'delayed' : q{} %> <%= $extraclasses %>"> % if ($show_realtime and $departure->{delay} and not $departure->{is_cancelled}) { <span class="delayed"> % } |