Bike!Bike! Website!
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.
 
 
 
 
 
 

15 lines
612 B

- content_for :banner do
- image = image_url(image_file || 'empty-racks.jpg')
- style = nil
- cover = nil
- figure = nil
- if capable_of(:css_mixblendmode)
- cover = "<div class=\"cover\" style=\"background-image: url(#{image})\"></div>"
- elsif capable_of(:svg) && Rails.env != 'test'
- banner_image = 'application/banner_image.svg'
- else
- style = "background-image: url(#{image})"
#header-title.short{style: style}
= (render banner_image, {:image => image}) if banner_image
= cover.html_safe if cover
%h1=_(@page_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}")