diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-11-01 20:37:32 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-11-01 20:37:32 +0100 |
commit | 4c206f01c7ac8a4211560f1d75b1ba9c8ef8b624 (patch) | |
tree | 48a890a7a8e590c617634accd29ca9251b3eff6f /templates/clean.html.ep | |
parent | 6a6d4e52ffb2bd53539a4ab6356619ee4560bbf9 (diff) |
clean template: mark cancelled departures with strike-through
Diffstat (limited to 'templates/clean.html.ep')
-rw-r--r-- | templates/clean.html.ep | 6 |
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"> |