From 9095b829914324c284b5208f8b8ac088de28b7d3 Mon Sep 17 00:00:00 2001 From: Birte Kristina Friesel Date: Thu, 16 Jan 2025 18:32:17 +0100 Subject: stationboard: IRIS: always show cancelled trains with scheduled time --- templates/app.html.ep | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'templates/app.html.ep') 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 @@ % } -% 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)) { @@ -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} +% } % } % if (($departure->{scheduled_platform} and $departure->{platform} and -- cgit v1.2.3