diff options
author | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 18:32:17 +0100 |
---|---|---|
committer | Birte Kristina Friesel <birte.friesel@uos.de> | 2025-01-16 18:32:17 +0100 |
commit | 9095b829914324c284b5208f8b8ac088de28b7d3 (patch) | |
tree | 31bf665b424c1687aea6173be4bb364ab8e07a12 /templates | |
parent | 87e168578bef45ef98caa72da9d2fb3519e1d032 (diff) |
Diffstat (limited to 'templates')
-rw-r--r-- | templates/app.html.ep | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep index 9356e27..8eec9a7 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -104,7 +104,7 @@ </span> % } <span class="time <%= $show_realtime ? get_rt_time_class($departure) : q{} %>"> -% if ($departure->{delay} and not $departure->{is_cancelled}) { +% if ($departure->{delay} and not $departure->{is_cancelled} and not $departure->{departure_is_cancelled}) { % if ($show_realtime and ($departure->{sched_arrival} or $departure->{sched_departure})) { % if ($departure->{delay} > ($hide_low_delay ? 4 : 0)) { <span class="delaynorm" aria-hidden="true"><%= $departure->{sched_departure} // $departure->{sched_arrival} %> ⇒</span> @@ -142,7 +142,12 @@ % } % } % else { -%= $departure->{time} +% if ($departure->{is_cancelled} or $departure->{departure_is_cancelled}) { +%= $departure->{sched_departure} // $departure->{sched_arrival} // $departure->{time} +% } +% else { +%= $departure->{time} +% } % } </span> % if (($departure->{scheduled_platform} and $departure->{platform} and |