diff options
author | Daniel Friesel <derf@finalrewind.org> | 2014-12-04 21:27:50 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2014-12-04 21:27:50 +0100 |
commit | d49d0978ca2a3617d74ae971418cd69c48b5ad17 (patch) | |
tree | df7b47f316772439c0c41d1efedaede81052d815 /templates | |
parent | cbbe35517e92f6cdf926a42eb167fca566881233 (diff) |
clean template: support negative delays (yes, they do happen every now and then)
Diffstat (limited to 'templates')
-rw-r--r-- | templates/clean.html.ep | 2 |
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> |