osem-fcy/app/views/conference/show.html.haml

62 lines
2.1 KiB
Text
Raw Normal View History

= content_for :brand do
= link_to @conference.title, conference_url(@conference.short_title), class: 'navbar-brand'
= content_for :splash do
2014-06-20 20:16:22 +05:30
- if @conference.include_banner_in_splash?
%section{ id: 'splash-banner' }
2014-06-20 22:41:18 +05:30
%div.banner-disp{ style: ("background-image: url(#{@conference.banner_photo})" unless @conference.banner_photo.blank?), class:('with-background' unless @conference.banner_photo.blank?) }
%div.container.text-center.banner-text
2014-06-25 15:37:32 +05:30
.row
2014-06-20 22:41:18 +05:30
%h1
= @conference.short_title
2014-06-20 22:41:18 +05:30
- if @conference.start_date && @conference.end_date
2014-06-25 15:37:32 +05:30
.row
%h3
= date_string(@conference.start_date, @conference.end_date)
2014-06-20 22:41:18 +05:30
- unless @conference.description.blank?
2014-06-25 15:37:32 +05:30
.row-fluid
.col-md-12.lead
%p
= markdown(@conference.description)
-unless @conference.photos.blank?
= link_to 'Gallery', gallery_photos_conference_path(@conference.short_title), class: 'btn btn-primary btn-lg', id: 'gallery-btn', remote: true
= render 'gallery'
- if @conference.include_program_in_splash?
%section{ id: 'program' }
.pad
= render 'program'
2014-06-18 22:25:42 +05:30
- if @conference.include_registrations_in_splash?
%section{ id: 'registration' }
2014-06-20 22:41:18 +05:30
.pad
= render 'registration'
-unless @conference.call_for_papers.blank?
- if @conference.call_for_papers.include_cfp_in_splash?
%section{ id:'callforpapers' }
2014-06-20 22:41:18 +05:30
.pad
= render 'call_for_papers'
-unless @conference.venue.blank?
- if @conference.venue.include_venue_in_splash?
%section{ id: 'location' }
2014-06-20 22:41:18 +05:30
.pad
= render 'location'
- unless @conference.venue.lodgings.empty?
- if @conference.venue.include_lodgings_in_splash?
= render 'lodging'
- if @conference.include_sponsors_in_splash?
%section{ id: 'sponsors' }
2014-06-20 22:41:18 +05:30
.pad
= render 'sponsor'
2014-06-18 22:25:42 +05:30
- if @conference.include_social_media_in_splash?
%section{ id: 'social-media' }
2014-06-20 22:41:18 +05:30
.pad
= render 'social_media'
2014-06-14 23:37:12 +05:30
= render 'footer'