summaryrefslogtreecommitdiff
path: root/templates/app.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/app.html.ep')
-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)) {