From 92927a4f8844142f0054d5120fc74cfb2c760e32 Mon Sep 17 00:00:00 2001 From: James Mason Date: Tue, 21 Nov 2017 10:14:54 -0800 Subject: [PATCH] Reorder splashpage sections Grouping common things, trying to keep things making sense. I'd like to see this become customizable at some point. --- app/views/conferences/show.html.haml | 37 ++++++++++++++-------------- 1 file changed, 18 insertions(+), 19 deletions(-) diff --git a/app/views/conferences/show.html.haml b/app/views/conferences/show.html.haml index f82235ce..e6e2fe00 100644 --- a/app/views/conferences/show.html.haml +++ b/app/views/conferences/show.html.haml @@ -11,39 +11,38 @@ = @conference.title #splash + // header/description = render 'header' + // attendance/registration - if @conference.splashpage.include_registrations && @conference.registration_open? = render 'registration' - - - if @conference.splashpage.include_program - = render 'schedule_splashpage' - - - if @conference.splashpage.include_cfp && @conference.call_for_events.try(:open?) - = render 'call_for_paper' - - - if @conference.splashpage.include_cfp && @conference.call_for_tracks.try(:open?) - = render 'call_for_tracks' - - - if @conference.splashpage.include_venue && @conference.venue - = render 'venue' - - - if @conference.splashpage.include_lodgings && @conference.lodgings.any? - = render 'lodging' - - if @conference.splashpage.include_tickets && @conference.tickets.any? && @conference.pending? = render 'tickets' + // calls for content - or - program + - if @conference.splashpage.include_cfp && @conference.call_for_events.try(:open?) + = render 'call_for_paper' + - if @conference.splashpage.include_cfp && @conference.call_for_tracks.try(:open?) + = render 'call_for_tracks' + - if @conference.splashpage.include_program + = render 'schedule_splashpage' - if @conference.splashpage.include_booths && @conference.confirmed_booths.any? = render 'booths' - - if @conference.splashpage.include_sponsors && @conference.sponsors.any? + // geo + - if @conference.splashpage.include_venue && @conference.venue + = render 'venue' + - if @conference.splashpage.include_lodgings && @conference.lodgings.any? + = render 'lodging' + + // sponsorship + - if @conference.splashpage.include_sponsors = render 'sponsors' + // footer - if @conference.splashpage.include_social_media && @conference.contact.has_social_media? = render 'social_media' - - // grmbl = render 'footer' - cache [@conference.color, '#splash#inlinejs'] do