From 67259550d22aa174ffe58f0809f8fa0d173cc2ce Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 29 Feb 2016 18:42:04 +0100 Subject: infoscreen: show absolute scheduled and relative real time, use floor (not ceil) --- templates/infoscreen.html.ep | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/templates/infoscreen.html.ep b/templates/infoscreen.html.ep index b0ba1fc..7f583c8 100644 --- a/templates/infoscreen.html.ep +++ b/templates/infoscreen.html.ep @@ -153,8 +153,8 @@ % } % else { % if ($departure->can('countdown')) { -% if ($departure->countdown > 0) { - <%= $departure->countdown %> min +% if ($departure->countdown > 1) { + <%= $departure->countdown - 1 %> min % } % else { sofort @@ -163,7 +163,12 @@ % } -%= $departure->time +% if ($departure->can('sched_time')) { +%= $departure->sched_time +% } +% else { +%= $departure->time +% } % } -- cgit v1.2.3