forked from bofh/fetsite
added header image to infoscreen
This commit is contained in:
@@ -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")
|
||||||
|
|||||||
Reference in New Issue
Block a user