summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2014-12-04 21:27:50 +0100
committerDaniel Friesel <derf@finalrewind.org>2014-12-04 21:27:50 +0100
commitd49d0978ca2a3617d74ae971418cd69c48b5ad17 (patch)
treedf7b47f316772439c0c41d1efedaede81052d815 /templates
parentcbbe35517e92f6cdf926a42eb167fca566881233 (diff)
clean template: support negative delays (yes, they do happen every now and then)
Diffstat (limited to 'templates')
-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 f073c2e..86a3d03 100644
--- a/templates/clean.html.ep
+++ b/templates/clean.html.ep
@@ -59,7 +59,7 @@
<span class="countdown">
% if ($departure->{delay} and not $departure->{is_cancelled}) {
% if ($show_realtime) {
-<span class="delaynorm">(+<%= $departure->{delay} %>)</span>
+<span class="delaynorm">(<%= sprintf('+%d', $departure->{delay}) %>)</span>
% }
% else {
<span class="delay">(+<%= $departure->{delay} %>)</span>