From 51e7e74cd55c5e51403c023edf04a31903a7c694 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 26 May 2017 19:34:05 +0200 Subject: support "arrival only, departure is cancelled" --- templates/clean.html.ep | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'templates') 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';
  • % } @@ -79,7 +79,11 @@
    Fahrt fällt aus
    % } % elsif (defined $departure->{delay} and $departure->{delay} > 0) { -
    +<%= $departure->{delay} %>
    +
    +<%= $departure->{delay} %> +% if ($departure->{departure_is_cancelled}) { + (endet hier) +% } +
    % } % if (@{$departure->{replaced_by}}) { % for my $replacement (@{$departure->{replaced_by}}) { -- cgit v1.2.3