diff options
| -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 {  | 
