[feat]Add a title for happening now section in splashpage

This commit is contained in:
Jimmy 2021-04-07 11:06:48 +08:00 committed by CactusPuppy
parent 71d926b4a0
commit 9d890d637e
No known key found for this signature in database
GPG key ID: 4B33B0A3E15E2C82

View file

@ -45,15 +45,19 @@
= render 'header', conference: @conference, venue: @conference.venue = render 'header', conference: @conference, venue: @conference.venue
-# happening now events -# happening now events
- if @conference.splashpage.include_happening_now %section#happening_now
- if @events_schedules.any? - if @conference.splashpage.include_happening_now
.container{style: "padding: 20;"} - if @events_schedules.any?
- for event_schedule in @events_schedules .row
= render 'schedules/event', conference: @conference, event_schedule: event_schedule, event: event_schedule.event .col-md-12
- else %h2.text-center Happening Now
.row .container{style: "padding: 20;"}
.col-md-12 - for event_schedule in @events_schedules
%h3.text-center There are no events happening now. = render 'schedules/event', conference: @conference, event_schedule: event_schedule, event: event_schedule.event
- else
.row
.col-md-12
%h3.text-center There are no events happening now.
-# calls for content, or program -# calls for content, or program
- if @conference.splashpage.include_cfp - if @conference.splashpage.include_cfp