summaryrefslogtreecommitdiff
path: root/templates/departures.html.ep
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2019-03-20 17:50:14 +0100
committerDaniel Friesel <derf@finalrewind.org>2019-03-20 17:50:14 +0100
commit2e1cf302316d129837a7bb37ec67c77cac8820ef (patch)
tree5fe413313c30a096e471da80e814a63a4c9fd73c /templates/departures.html.ep
parent0226713c1d1839f2ffac41a1000180c0089afe9d (diff)
Show negative delay as "-X", not "+-X"
Diffstat (limited to 'templates/departures.html.ep')
-rw-r--r--templates/departures.html.ep2
1 files changed, 1 insertions, 1 deletions
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 @@
</td>
<td class="<%= $td_class %>"><%= $result->departure->strftime('%H:%M') %>
% if ($result->departure_delay) {
- (+<%= $result->departure_delay %>)
+ (<%= sprintf('%+d', $result->departure_delay) %>)
% }
</td>
</tr>