Fold booths into the schedule section of splashpage

This commit is contained in:
James Mason 2017-11-21 10:26:19 -08:00
parent 92927a4f88
commit 394448dc36
3 changed files with 7 additions and 10 deletions

View file

@ -1,7 +1,3 @@
= content_for :splash_nav do
%li
%a.smoothscroll{ href: '#booths' } Booths
- cache [@conference.confirmed_booths, '#splash#booths'] do - cache [@conference.confirmed_booths, '#splash#booths'] do
%section#booths %section#booths
.container .container

View file

@ -1,9 +1,9 @@
= content_for :splash_nav do = content_for :splash_nav do
%li %li
=link_to('#program', class: 'smoothscroll') do %a.smoothscroll{ href: '#program' } Program
Program
- cache [@confererence, @conference.confirmed_tracks, '#splash#program'] do - cache [@confererence, @conference.confirmed_tracks,
@conference.confirmed_booths,'#splash#schedule'] do
%section#program %section#program
.container .container
.row .row
@ -55,3 +55,6 @@
%h5.text-center %h5.text-center
= markdown truncate(event.abstract, length: 500, separator: ' ') = markdown truncate(event.abstract, length: 500, separator: ' ')
= link_to "Read More", conference_program_proposal_path(@conference.short_title, event) = link_to "Read More", conference_program_proposal_path(@conference.short_title, event)
- if @conference.splashpage.include_booths && @conference.confirmed_booths.any?
= render 'booths'

View file

@ -20,15 +20,13 @@
- if @conference.splashpage.include_tickets && @conference.tickets.any? && @conference.pending? - if @conference.splashpage.include_tickets && @conference.tickets.any? && @conference.pending?
= render 'tickets' = render 'tickets'
// calls for content - or - program // calls for content, or program
- if @conference.splashpage.include_cfp && @conference.call_for_events.try(:open?) - if @conference.splashpage.include_cfp && @conference.call_for_events.try(:open?)
= render 'call_for_paper' = render 'call_for_paper'
- if @conference.splashpage.include_cfp && @conference.call_for_tracks.try(:open?) - if @conference.splashpage.include_cfp && @conference.call_for_tracks.try(:open?)
= render 'call_for_tracks' = render 'call_for_tracks'
- if @conference.splashpage.include_program - if @conference.splashpage.include_program
= render 'schedule_splashpage' = render 'schedule_splashpage'
- if @conference.splashpage.include_booths && @conference.confirmed_booths.any?
= render 'booths'
// geo // geo
- if @conference.splashpage.include_venue && @conference.venue - if @conference.splashpage.include_venue && @conference.venue