new schedule
This commit is contained in:
parent
0018284c66
commit
d8f9de9363
9 changed files with 182 additions and 81 deletions
|
|
@ -17,6 +17,14 @@ class ConferenceController < ApplicationController
|
|||
@events_xml = @events.scheduled.order(start_time: :asc).group_by{ |event| event.start_time.to_date }
|
||||
@dates = @conference.start_date..@conference.end_date
|
||||
|
||||
@number_columns = 1
|
||||
@conf_start = 9
|
||||
conf_end = 20
|
||||
@intervals = @number_columns * 60 / EventType::LENGTH_STEP + 1
|
||||
@width = 85 / @intervals
|
||||
@step_minutes = EventType::LENGTH_STEP.minutes
|
||||
@carousel_number = ((conf_end - @conf_start) / @number_columns.to_f).ceil
|
||||
|
||||
if @dates == Date.current
|
||||
@today = Date.current.strftime('%Y-%m-%d')
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue