[feat] Display happening now events in splashpage

This commit is contained in:
Jimmy 2021-04-07 10:34:49 +08:00 committed by CactusPuppy
parent a7a6255656
commit 3b96d9e63e
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82
2 changed files with 12 additions and 4 deletions

View file

@ -46,10 +46,15 @@
-# happening now events
- if @conference.splashpage.include_happening_now
.row
.col-md-12
#happening_now_panel
%h3.text-center There are no events happening now.
- if @events_schedules.any?
- for event_schedule in @events_schedules
.container
= render 'schedules/event', conference: @conference, event_schedule: event_schedule, event: event_schedule.event
- else
.row
.col-md-12
#happening_now_panel
%h3.text-center There are no events happening now.
-# calls for content, or program
- if @conference.splashpage.include_cfp