Commit d49d0978 authored by Birte Kristina Friesel's avatar Birte Kristina Friesel
Browse files

clean template: support negative delays (yes, they do happen every now and then)

parent cbbe3551
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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>