summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/clean.html.ep9
1 files changed, 6 insertions, 3 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 8ee8173..0bbdf54 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -16,13 +16,16 @@
% my $extraclasses = q{};
% if ($departure->{is_cancelled}) {
% $extraclasses .= ' cancelled';
+ <li class="cancelled">
+% }
+% else {
+ <li>
% }
- <li>
% my $linetype = q{};
% if ( $departure->{train_type} eq 'S' ) {
% $linetype = 'sbahn';
% }
- <span class="line <%= $linetype %> <%= $extraclasses %>">
+ <span class="line <%= $linetype %>">
% if ($departure->{train_type} and $departure->{train_no}) {
%= $departure->{train_type}
% }
@@ -143,7 +146,7 @@
<span class="dest <%= $extraclasses %>">
%= $departure->{destination}
</span>
- <span class="countdown">
+ <span class="countdown <%= $extraclasses %>">
% if ($departure->{delay} and not $departure->{is_cancelled}) {
% if ($show_realtime) {
% if ($departure->{delay} > 0) {