osem-fcy/app/views/conferences/_header.haml

36 lines
1.4 KiB
Text
Raw Normal View History

- cache [conference, venue, '#splash#header'] do
2019-12-17 02:18:44 -08:00
#banner{ style: ("background-image: url(#{conference.picture_url})" if conference.picture_url) }
.container
.row
2020-01-08 01:47:27 -08:00
.col-md-6.col-md-offset-3{id: (conference.picture? ? "header-image" : "header-no-image")}
.row
2019-12-17 03:15:05 -08:00
-# - if conference.picture?
-# .col-md-4
-# = image_tag(conference.picture_url,
-# class: 'img-responsive img-center',
-# id: 'splash-logo')
2020-01-07 16:06:51 -08:00
.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