diff options
author | Daniel Friesel <derf@finalrewind.org> | 2013-12-13 11:39:31 +0100 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2013-12-13 11:39:31 +0100 |
commit | 53eb47d6e367b989d0133d9272aedb193cb2b2fc (patch) | |
tree | 156a07817f1d15fd44099264b068ad03694a220d | |
parent | 046ad7edaf090715a37289494434081cd04a8c0c (diff) |
infoscreen: Add countdown
-rw-r--r-- | cgi/templates/infoscreen.html.ep | 7 |
1 files 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 </span> <span class="countdown"> +% if ($departure->delay) { +<span class="delay"> (+<%= $departure->delay %>) </span> +% } % if ($departure->is_cancelled) { <span class="delay"> FĂ„LLT AUS </span> % } -% if ($departure->delay) { -<span class="delay"> (+<%= $departure->delay %>) </span> +% else { +<%= $departure->countdown %> min % } </span> <span class="time"> |