diff options
author | Daniel Friesel <derf@finalrewind.org> | 2016-12-06 20:05:07 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2016-12-06 20:05:07 +0100 |
commit | fbb1fb9818cab96035e6071abc8b259168701195 (patch) | |
tree | 821701359cbad94c40e5b7b0b607e68c666817a3 /templates | |
parent | 9370d666116a11bd198e57584514d8a6c0e5b284 (diff) |
infoscreen: enable light-yellow background color for cancelled departures
Diffstat (limited to 'templates')
-rw-r--r-- | templates/infoscreen.html.ep | 6 |
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') { |