[refactor]Delete unused javascript; Move about-and-happening-now to partial

This commit is contained in:
Jimmy 2021-04-09 16:41:16 +08:00
parent 185b2773d7
commit 5f776f9275
2 changed files with 26 additions and 50 deletions

View file

@ -0,0 +1,25 @@
%section#about-and-happening-now
.container
.row
-# happening now events are displayed second in md or lg view
.col-md-6.col-md-push-6.col-lg-4.col-lg-push-8
#happening-now
- if @conference.splashpage.include_happening_now
- if @events_schedules.any?
.row
%h2.text-center{ style: "margin-bottom:30px" } Happening Now
- for event_schedule in @events_schedules
= render 'schedules/event', conference: @conference, event_schedule: event_schedule, event: event_schedule.event
- if @events_schedules_length > @events_schedules_limit
.container{ style: "width:100%; text-align:center" }
!= pagy_bootstrap_nav(@pagy)
- else
.row
%h3.text-center There are no events happening now.
- if @conference.description.present?
.col-md-6.col-md-pull-6.col-lg-8.col-lg-pull-4
#about
.row
%h2.text-left{ style: "margin-bottom:30px" } About the Conference
= markdown(@conference.description, escape_html=false)
.trapezoid