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.

16 lines
613 B

9 years ago
- content_for :banner do
- image = image_path(image_file || 'empty-racks.jpg')
9 years ago
- style = nil
- cover = nil
- figure = nil
- if capable_of(:css_mixblendmode)
9 years ago
- cover = "<div class=\"cover\" style=\"background-image: url(#{image})\"></div>"
- elsif capable_of(:svg) && Rails.env != 'test'
9 years ago
- 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}")