Redesign splashpage program section & split out partials

This commit is contained in:
James Mason 2017-11-27 18:26:34 -08:00
parent 494a1b32a4
commit 8f43da79b5
4 changed files with 73 additions and 70 deletions

View file

@ -3,58 +3,29 @@
%a.smoothscroll{ href: '#program' } Program
- cache [@confererence, @conference.confirmed_tracks,
@conference.confirmed_booths,'#splash#schedule'] do
@conference.confirmed_booths,'#splash#program'] do
%section#program
.container
.row
.col-md-12
%h2.text-center
Program
%p.lead.text-center
%span.notranslate
= @conference.title
has the most awesome program ever!
- if @conference.splashpage.include_tracks && @conference.confirmed_tracks.any?
See rock-star speakers cover the topics of
- @conference.confirmed_tracks.each_slice(3) do |slice|
.row.row-centered
- slice.each do |track|
.col-md-4.col-sm-4.col-centered.col-top.track
%h4.text-center
= track.name
= markdown(track.description)
- if track.start_date
%br
From: #{track.start_date.strftime('%A, %B %-d. %Y')}
- if track.end_date
%br
To: #{track.end_date.strftime('%A, %B %-d. %Y')}
- if track.room
%br
In: #{track.room.name}
- if @conference.program.try(:schedule_public?)
.container
.row
.col-md-12
%p.cta-button.text-center
= link_to(conference_schedule_path(@conference.short_title), class: 'btn btn-default btn-lg') do
Full Schedule
%p.lead.text-center
%span.notranslate
= @conference.title
has the most awesome program ever!
%h3.text-center
Don't miss out!
%br
- if @conference.highlighted_events.any?
.row
.col-md-12
- @conference.highlighted_events.each_slice(2) do |slice|
.row.row-centered
- slice.each do |event|
.col-md-6.col-centered.col-top.highlights
%p.text-center
%b= event.title
%h5.text-center
= markdown truncate(event.abstract, length: 500, separator: ' ')
= link_to "Read More", conference_program_proposal_path(@conference.short_title, event)
- if @conference.highlighted_events.any?
= render 'highlights'
- if @conference.splashpage.include_booths && @conference.confirmed_booths.any?
= render 'booths'
- if @conference.splashpage.include_tracks && @conference.confirmed_tracks.any?
= render 'tracks'
- if @conference.splashpage.include_booths && @conference.confirmed_booths.any?
= render 'booths'
- if @conference.program.try(:schedule_public?)
.row
.col-md-12
%p.cta-button.text-center
= link_to(conference_schedule_path(@conference.short_title),
class: 'btn btn-success btn-lg') do
Full Schedule