added header image to infoscreen

This commit is contained in:
peter
2017-05-31 23:41:51 +02:00
parent 29d5c8dac7
commit 09532fc74c

View File

@@ -53,11 +53,12 @@
</div> </div>
<% <%
raw("zeitfunktion")
require 'time' require 'time'
close_time = Time.parse "03:00 pm" close_time = Time.parse "03:00 pm"
open_time = Time.parse "09:00 am" open_time = Time.parse "09:00 am"
current_time = Time.now current_time = Time.now
if (current_time > open_time) && (current_time < close_time) if (current_time > open_time)
raw("OPEN") raw("OPEN")
else else
raw("CLOSED") raw("CLOSED")