summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/clean.html.ep12
1 files changed, 11 insertions, 1 deletions
diff --git a/templates/clean.html.ep b/templates/clean.html.ep
index 215f098..2b191e0 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -64,11 +64,21 @@
<span class="countdown">
% if ($departure->{delay} and not $departure->{is_cancelled}) {
% if ($show_realtime) {
-<span class="delaynorm">(<%= sprintf('+%d', $departure->{delay}) %>)</span>
+% if ($departure->{delay} > 0) {
+<span class="delaynorm">(+<%= $departure->{delay} %>)</span>
% }
% else {
+<span class="undelaynorm">(<%= $departure->{delay} %>)</span>
+% }
+% }
+% else {
+% if ($departure->{delay} > 0) {
<span class="delay">(+<%= $departure->{delay} %>)</span>
% }
+% else {
+<span class="undelay">(<%= $departure->{delay} %>)</span>
+% }
+% }
% }
<span class="platform">
%= $departure->{platform}