From 09532fc74c54d7b4d747b09414f6f32569f0df60 Mon Sep 17 00:00:00 2001 From: peter Date: Wed, 31 May 2017 23:41:51 +0200 Subject: [PATCH] added header image to infoscreen --- app/views/home/infoscreen.html.erb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/views/home/infoscreen.html.erb b/app/views/home/infoscreen.html.erb index f736a1e..bd199f2 100644 --- a/app/views/home/infoscreen.html.erb +++ b/app/views/home/infoscreen.html.erb @@ -53,11 +53,12 @@ <% + raw("zeitfunktion") require 'time' close_time = Time.parse "03:00 pm" open_time = Time.parse "09:00 am" current_time = Time.now - if (current_time > open_time) && (current_time < close_time) + if (current_time > open_time) raw("OPEN") else raw("CLOSED")