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.

19 lines
784 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>"
- else
- style = "background-image: url(#{image})"
#header-title.short{style: style}
9 years ago
= (render banner_image, {:image => image}) if defined?(banner_image) == "local-variable"
9 years ago
= cover.html_safe if cover
9 years ago
- if @page_title.present? || defined?(page_group)
- content_for :title do
=@page_title.present? ? I18n.t(@page_title, @page_title_vars) : I18n.t("page_titles.#{page_group.to_s}.#{page_key.to_s}")
= row do
= columns do
%h1=_(@main_title || "page_titles.#{page_group.to_s}.#{page_key.to_s}")