summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-11-05 12:34:28 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-11-05 12:34:28 +0100
commit6df8a4d437ad0adc3c49377e7ea547afb3268b1a (patch)
tree74131a9abacb4ea9960031f2e36358e1ba9d1c5f
parent4c206f01c7ac8a4211560f1d75b1ba9c8ef8b624 (diff)
clean: never show a delay for canceled trains
-rw-r--r--templates/clean.html.ep2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index c013cd6..21750d5 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -57,7 +57,7 @@
%= $departure->{destination}
</span>
<span class="countdown">
-% if ($departure->{delay}) {
+% if ($departure->{delay} and not $departure->{is_cancelled}) {
<span class="delay">(+<%= $departure->{delay} %>)</span>
% }
<span class="platform">