summaryrefslogtreecommitdiff
path: root/templates/app.html.ep
diff options
context:
space:
mode:
authorBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 18:32:17 +0100
committerBirte Kristina Friesel <birte.friesel@uos.de>2025-01-16 18:32:17 +0100
commit9095b829914324c284b5208f8b8ac088de28b7d3 (patch)
tree31bf665b424c1687aea6173be4bb364ab8e07a12 /templates/app.html.ep
parent87e168578bef45ef98caa72da9d2fb3519e1d032 (diff)
stationboard: IRIS: always show cancelled trains with scheduled timeHEAD4.33.4main
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r--templates/app.html.ep9
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