Splash view for banner component

This commit is contained in:
Gopesh Tulsyan 2014-06-20 20:16:22 +05:30
parent 524f22835d
commit cc8299294d
4 changed files with 33 additions and 11 deletions

View file

@ -1,8 +1,20 @@
= content_for :brand do
= link_to @conference.title, conference_url(@conference.short_title), class: 'navbar-brand'
= content_for :splash do
- unless @conference.description.blank?
%p= @conference.description
- if @conference.include_banner_in_splash?
%section{ id: 'splash-banner' }
%div.banner-disp{ style: ("background-image: url(#{@conference.banner_photo})" unless @conference.banner_photo.blank?), class:('with-splash-banner' unless @conference.banner_photo.blank?) }
%div.container.text-center.banner-text
.row.col-md-12
%h1
= @conference.title
- if @conference.start_date && @conference.end_date
%h3
= conference_date_string(@conference)
- unless @conference.description.blank?
.row-fluid.col-md-12.lead
%p= @conference.description
- if @conference.include_program_in_splash?
%section{ id: 'program' }