From 2e1cf302316d129837a7bb37ec67c77cac8820ef Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Wed, 20 Mar 2019 17:50:14 +0100 Subject: Show negative delay as "-X", not "+-X" --- templates/departures.html.ep | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'templates/departures.html.ep') diff --git a/templates/departures.html.ep b/templates/departures.html.ep index 47c4872..00c1c0e 100644 --- a/templates/departures.html.ep +++ b/templates/departures.html.ep @@ -71,7 +71,7 @@ <%= $result->departure->strftime('%H:%M') %> % if ($result->departure_delay) { - (+<%= $result->departure_delay %>) + (<%= sprintf('%+d', $result->departure_delay) %>) % } -- cgit v1.2.3