summaryrefslogtreecommitdiff
path: root/templates/clean.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2015-01-09 20:10:06 +0100
committerDaniel Friesel <derf@finalrewind.org>2015-01-09 20:10:06 +0100
commit038b7d597eaf952165a1355a13d3e1afb23a2757 (patch)
treed54901a8c96a3cce2cf2b84f91f5a9fd4d451a2a /templates/clean.html.ep
parent9b505325d686194e4ef0098438f84455698ab71a (diff)
clean: strike through all fields of a cancelled train
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r--templates/clean.html.ep14
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">
% }