Move JS out of view and have calendar start on same day as horizontal schedule

This commit is contained in:
CactusPuppy 2021-04-28 23:53:55 -07:00
parent 409fd09514
commit 468e170a2e
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
4 changed files with 22 additions and 15 deletions

View file

@ -79,6 +79,10 @@ class SchedulesController < ApplicationController
end
def vertical_schedule
dates = @conference.start_date..@conference.end_date
# the schedule takes you to today if it is a date of the schedule
current_day = @conference.current_conference_day
@day = current_day.present? ? current_day : dates.first
event_schedules = @program.selected_event_schedules(
includes: [{ event: %i[event_type speakers submitter] }]
)