diff options
author | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-14 11:47:19 +0100 |
---|---|---|
committer | Birte Kristina Friesel <derf@finalrewind.org> | 2024-12-14 11:47:19 +0100 |
commit | 25afe3f24f86c35e1002ebd517f2c65dc10b3bad (patch) | |
tree | 2d311cde5b98e0eb5000670502589d9512d2f2fc /templates/app.html.ep | |
parent | 62e1f67234939855c94fc51c41dd4c3f831c6351 (diff) |
always show scheduled arr/dep time4.32.1
Diffstat (limited to 'templates/app.html.ep')
-rw-r--r-- | templates/app.html.ep | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep index 6df6b17..9356e27 100644 --- a/templates/app.html.ep +++ b/templates/app.html.ep @@ -105,12 +105,12 @@ % } <span class="time <%= $show_realtime ? get_rt_time_class($departure) : q{} %>"> % if ($departure->{delay} and not $departure->{is_cancelled}) { -% if ($show_realtime) { +% 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->{delay} %> ⇒</span> + <span class="delaynorm" aria-hidden="true"><%= $departure->{sched_departure} // $departure->{sched_arrival} %> ⇒</span> % } % elsif ($departure->{delay} < 0) { - <span class="undelaynorm" aria-hidden="true"><%= $departure->{delay} %> ⇒</span> + <span class="undelaynorm" aria-hidden="true"><%= $departure->{sched_departure} // $departure->{sched_arrival} %> ⇒</span> % } % } % else { |