summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorBirte Kristina Friesel <derf@finalrewind.org>2024-07-08 20:47:54 +0200
committerBirte Kristina Friesel <derf@finalrewind.org>2024-07-08 20:47:54 +0200
commit17563a9284665f5f9852ce9da25b94c8bb9389c2 (patch)
tree37dc8c2960b251164d00d746b901fdc0d963e4db /templates
parente04f4cde71003079789236b9b4ccb6b90b2806cb (diff)
distinguish between 'on time' and 'no realtime data available' in rt=1
Diffstat (limited to 'templates')
-rw-r--r--templates/app.html.ep3
1 files changed, 1 insertions, 2 deletions
diff --git a/templates/app.html.ep b/templates/app.html.ep
index e81191b..a499dd7 100644
--- a/templates/app.html.ep
+++ b/templates/app.html.ep
@@ -100,8 +100,7 @@
%= $departure->{origin}
</span>
% }
- <span class="time <%= ($show_realtime and $departure->{delay} and not
- $departure->{is_cancelled}) ? 'delayed' : q{} %>">
+ <span class="time <%= $show_realtime ? get_rt_time_class($departure) : q{} %>">
% if ($departure->{delay} and not $departure->{is_cancelled}) {
% if ($show_realtime) {
% if ($departure->{delay} > ($hide_low_delay ? 4 : 0)) {