36 lines
1.4 KiB
Text
36 lines
1.4 KiB
Text
- cache [conference, venue, '#splash#header'] do
|
|
#banner{ style: ("background-image: url(#{conference.picture_url})" if conference.picture_url) }
|
|
.container
|
|
.row
|
|
.col-md-6.col-md-offset-3{ id: (conference.picture? ? "header-image" : "header-no-image") }
|
|
.row
|
|
-#
|
|
- if conference.picture?
|
|
.col-md-4
|
|
= image_tag(conference.picture_url,
|
|
class: 'img-responsive img-center',
|
|
id: 'splash-logo')
|
|
.col-md-8
|
|
%h1
|
|
= conference.title.html_safe
|
|
%h3
|
|
- if conference.start_date && conference.end_date
|
|
%span.date.text-nowrap
|
|
= date_string(conference.start_date, conference.end_date)
|
|
- if conference.venue
|
|
%span.venue.text-nowrap
|
|
- if venue.website.present?
|
|
= sanitize link_to(venue.name, venue.website)
|
|
- else
|
|
= venue.city
|
|
- if venue.country != 'US'
|
|
•
|
|
= venue.country_name
|
|
|
|
- unless conference.description.blank?
|
|
%section#about
|
|
.container
|
|
.row
|
|
.col-md-8.col-md-offset-2
|
|
= markdown(conference.description, escape_html=false)
|
|
.trapezoid
|