Commit 4c206f01 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

clean template: mark cancelled departures with strike-through

parent 6a6d4e52
Loading
Loading
Loading
Loading
+9 −8
Original line number Diff line number Diff line
@@ -253,6 +253,7 @@ sub handle_request {
				destination  => $result->destination,
				platform     => $platform,
				info         => $info,
				is_cancelled => $result->is_cancelled,
				moreinfo     => $moreinfo,
				delay        => $delay,
			}
+6 −0
Original line number Diff line number Diff line
@@ -120,6 +120,12 @@ div.displayclean li .dest {
	overflow: hidden;
}

div.displayclean li .cancelled {
	text-decoration: line-through;
	text-decoration-color: red;
	-moz-text-decoration-color: red;
}

div.displayclean li .countdown {
	color:#000000;
	font-size:3em;
+5 −1
Original line number Diff line number Diff line
@@ -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">