summaryrefslogtreecommitdiff
path: root/templates/_train_details.html.ep
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_train_details.html.ep')
-rw-r--r--templates/_train_details.html.ep7
1 files changed, 6 insertions, 1 deletions
diff --git a/templates/_train_details.html.ep b/templates/_train_details.html.ep
index e1f242f..6b3e1a7 100644
--- a/templates/_train_details.html.ep
+++ b/templates/_train_details.html.ep
@@ -55,7 +55,12 @@
% }
% elsif ($departure->{arrival}) {
% if ($departure->{arrival} ne $departure->{sched_arrival}) {
- An: <span class="minfo"><%= $departure->{arrival} %></span>
+ % if ($departure->{delay} < 0) {
+ An: <span class="undelay"><%= $departure->{arrival} %></span>
+ % }
+ % else {
+ An: <span class="minfo"><%= $departure->{arrival} %></span>
+ % }
<br/>Plan: <%= $departure->{sched_arrival} %>
% }
% else {