From 53eb47d6e367b989d0133d9272aedb193cb2b2fc Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Fri, 13 Dec 2013 11:39:31 +0100 Subject: infoscreen: Add countdown --- cgi/templates/infoscreen.html.ep | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/cgi/templates/infoscreen.html.ep b/cgi/templates/infoscreen.html.ep index 068bb84..f855c6c 100644 --- a/cgi/templates/infoscreen.html.ep +++ b/cgi/templates/infoscreen.html.ep @@ -223,11 +223,14 @@ %= $departure->destination +% if ($departure->delay) { + (+<%= $departure->delay %>) +% } % if ($departure->is_cancelled) { FĂ„LLT AUS % } -% if ($departure->delay) { - (+<%= $departure->delay %>) +% else { +<%= $departure->countdown %> min % } -- cgit v1.2.3