Splash view for banner component
This commit is contained in:
parent
524f22835d
commit
cc8299294d
4 changed files with 33 additions and 11 deletions
|
|
@ -3,7 +3,7 @@
|
|||
%a{ href: '#location' } Location
|
||||
|
||||
|
||||
%div#venue-banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" unless @conference.venue.photo.blank?), class:('with-background' unless @conference.venue.photo.blank?) }
|
||||
%div.banner-disp{ style: ("background-image: url(#{@conference.venue.photo})" unless @conference.venue.photo.blank?), class:('with-location-background' unless @conference.venue.photo.blank?) }
|
||||
%div.container.text-center
|
||||
.div.row.col-md-12
|
||||
- unless @conference.venue.name.blank?
|
||||
|
|
@ -15,7 +15,7 @@
|
|||
- unless @conference.venue.description.blank?
|
||||
%p
|
||||
%strong #{ @conference.venue.description }
|
||||
%ul
|
||||
%ul.location-links
|
||||
- unless @conference.venue.address.blank?
|
||||
%li
|
||||
%b
|
||||
|
|
|
|||
|
|
@ -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' }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue