You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
21 lines
885 B
21 lines
885 B
- content_for :banner do
|
|
- style = nil
|
|
- cover = nil
|
|
- figure = nil
|
|
- if capable_of(:css_mixblendmode) || ENV['RAILS_ENV'] == 'test'
|
|
- cover = "<div class=\"cover\" style=\"background-image: url(#{@conference.cover_url || image_path('default_cover.jpg')})\"></div>"
|
|
- elsif capable_of(:svg)
|
|
- banner_image = 'conferences/banner_image.svg'
|
|
- else
|
|
- style = "background-image: url(#{@conference.cover_url || image_path('default_cover.jpg')})"
|
|
#header-title{style: style}
|
|
= render banner_image if banner_image
|
|
= cover.html_safe if cover
|
|
.title
|
|
%h2.background=_!"#{@conference.start_date.year.to_s}!"
|
|
.details
|
|
%h3.primary=location(@conference.organizations.first.locations.first)
|
|
.secondary
|
|
= date_span(@conference.start_date.to_date, @conference.end_date.to_date)
|
|
%figure
|
|
%img{src: @conference.poster.full.url || image_path('default_poster.jpg')}
|
|
|