diff options
author | Daniel Friesel <derf@finalrewind.org> | 2017-05-26 19:34:05 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2017-05-26 19:34:05 +0200 |
commit | 51e7e74cd55c5e51403c023edf04a31903a7c694 (patch) | |
tree | 6e625867d3f95f56420cfb44f12d4f9b399afbe6 /templates | |
parent | ce13f8594be9d0c2aa14a19f2bfe50357daab199 (diff) |
support "arrival only, departure is cancelled"
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep index 41dddc6..1c64c20 100644 --- a/templates/clean.html.ep +++ b/templates/clean.html.ep @@ -14,7 +14,7 @@ % $route_str .= $stop . ($via_cur < $via_max ? ' - ' : q{}); % } % my $extraclasses = q{}; -% if ($departure->{is_cancelled}) { +% if ($departure->{is_cancelled} or $departure->{departure_is_cancelled}) { % $extraclasses .= ' cancelled'; <li class="cancelled"> % } @@ -79,7 +79,11 @@ <div class="minfo">Fahrt fällt aus</div> % } % elsif (defined $departure->{delay} and $departure->{delay} > 0) { - <div class="minfo">+<%= $departure->{delay} %></div> + <div class="minfo">+<%= $departure->{delay} %> +% if ($departure->{departure_is_cancelled}) { + (endet hier) +% } + </div> % } % if (@{$departure->{replaced_by}}) { % for my $replacement (@{$departure->{replaced_by}}) { |