summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>
% }