summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-12-06 20:05:07 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-12-06 20:05:07 +0100
commitfbb1fb9818cab96035e6071abc8b259168701195 (patch)
tree821701359cbad94c40e5b7b0b607e68c666817a3
parent9370d666116a11bd198e57584514d8a6c0e5b284 (diff)
infoscreen: enable light-yellow background color for cancelled departures
-rw-r--r--templates/infoscreen.html.ep6
1 files changed, 5 insertions, 1 deletions
diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep
index 023560f..2980806 100644
--- a/templates/infoscreen.html.ep
+++ b/templates/infoscreen.html.ep
@@ -30,6 +30,7 @@
<ul>
% for my $departure (@{$raw}) {
% my $linetype = q{};
+% my $liclass = q{};
% if ($departure->can('type')) {
% given ($departure->type) {
% when ($_ =~ m{ (?: enbahn $ ) | Tram | STR }ix) { $linetype = 'tram' }
@@ -38,7 +39,10 @@
% when ([qw[U-Bahn U]]) { $linetype = 'ubahn' }
% }
% }
- <li>
+% if ($departure->can('is_cancelled') and $departure->is_cancelled) {
+% $liclass = 'cancelled';
+% }
+ <li class="<%= $liclass %>">
<span class="line <%= $linetype %>">
% if ($departure->can('line_no')) {
% if ($linetype eq 'sbahn') {