BikeBikeBike/app/views/application/_header.html.haml

18 lines
644 B
Plaintext
Raw Normal View History

2015-08-21 19:29:43 -07:00
- content_for :banner do
- image = image_path(image_file || 'empty-racks.jpg')
2015-08-21 19:29:43 -07:00
- style = nil
- cover = nil
- figure = nil
2015-09-01 20:50:45 -07:00
- if capable_of(:css_mixblendmode)
2015-08-21 19:29:43 -07:00
- cover = "<div class=\"cover\" style=\"background-image: url(#{image})\"></div>"
2015-09-01 20:50:45 -07:00
- elsif capable_of(:svg) && Rails.env != 'test'
2015-08-21 19:29:43 -07:00
- 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
2016-05-09 21:35:26 -07:00
= row do
= columns do
%h1=_(@page_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}")