Fix banner view

This commit is contained in:
Gopesh Tulsyan 2014-06-25 15:37:32 +05:30
parent ee4208fa1e
commit 1e9b416e2b

View file

@ -5,15 +5,17 @@
%section{ id: 'splash-banner' } %section{ id: 'splash-banner' }
%div.banner-disp{ style: ("background-image: url(#{@conference.banner_photo})" unless @conference.banner_photo.blank?), class:('with-background' unless @conference.banner_photo.blank?) } %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 %div.container.text-center.banner-text
.row.col-md-12 .row
%h1 %h1
= @conference.title = @conference.title
- if @conference.start_date && @conference.end_date - if @conference.start_date && @conference.end_date
.row
%h3 %h3
= conference_date_string(@conference) = conference_date_string(@conference)
- unless @conference.description.blank? - unless @conference.description.blank?
.row-fluid.col-md-12.lead .row-fluid
.col-md-12.lead
%p= @conference.description %p= @conference.description
- if @conference.include_program_in_splash? - if @conference.include_program_in_splash?