From d49d0978ca2a3617d74ae971418cd69c48b5ad17 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Thu, 4 Dec 2014 21:27:50 +0100 Subject: clean template: support negative delays (yes, they do happen every now and then) --- templates/clean.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ % if ($departure->{delay} and not $departure->{is_cancelled}) { % if ($show_realtime) { -(+<%= $departure->{delay} %>) +(<%= sprintf('+%d', $departure->{delay}) %>) % } % else { (+<%= $departure->{delay} %>) -- cgit v1.2.3