summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2016-02-29 18:42:04 +0100
committerDaniel Friesel <derf@finalrewind.org>2016-02-29 18:42:25 +0100
commit67259550d22aa174ffe58f0809f8fa0d173cc2ce (patch)
treee55c5ddc013ad188420a00e773a77d59bfce9877 /templates
parent75cd6a759070024facc555eb27bfb3cf78d6635a (diff)
infoscreen: show absolute scheduled and relative real time, use floor (not ceil)
Diffstat (limited to 'templates')
-rw-r--r--templates/infoscreen.html.ep11
1 files 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 @@
% }
</span> <!-- countdown -->
<span class="time">
-%= $departure->time
+% if ($departure->can('sched_time')) {
+%= $departure->sched_time
+% }
+% else {
+%= $departure->time
+% }
</span>
</li>
% }