summaryrefslogtreecommitdiff
path: root/templates/clean.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-11-01 20:37:32 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-11-01 20:37:32 +0100
commit4c206f01c7ac8a4211560f1d75b1ba9c8ef8b624 (patch)
tree48a890a7a8e590c617634accd29ca9251b3eff6f /templates/clean.html.ep
parent6a6d4e52ffb2bd53539a4ab6356619ee4560bbf9 (diff)
clean template: mark cancelled departures with strike-through
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r--templates/clean.html.ep6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 329d89d..c013cd6 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -49,7 +49,11 @@
% }
</span>
% }
-<span class="dest">
+% my $extraclasses = q{};
+% if ($departure->{is_cancelled}) {
+% $extraclasses .= ' cancelled';
+% }
+<span class="dest <%= $extraclasses %>">
%= $departure->{destination}
</span>
<span class="countdown">