A few more absolute urls

This commit is contained in:
Godwin 2015-09-01 22:15:15 -07:00
parent 00f762d002
commit feab2beb95
6 changed files with 6 additions and 6 deletions

View File

Before

Width:  |  Height:  |  Size: 153 KiB

After

Width:  |  Height:  |  Size: 153 KiB

View File

@ -1,5 +1,5 @@
- content_for :banner do - content_for :banner do
- image = image_url(@banner_image || 'empty-racks.jpg') - image = image_path(@banner_image || 'empty-racks.jpg')
#header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"} #header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"}
- if capable_of(:svg) - if capable_of(:svg)
= render 'application/banner_image.svg', {:image => image} = render 'application/banner_image.svg', {:image => image}

View File

@ -1,4 +1,4 @@
= render :partial => 'application/header', :locals => {:page_group => 'about', :page_key => 'About_BikeBike', :image_file => 'xconference.jpg'} = render :partial => 'application/header', :locals => {:page_group => 'about', :page_key => 'About_BikeBike', :image_file => 'workshop.jpg'}
%article %article
= row do = row do
= columns(medium: 12) do = columns(medium: 12) do
@ -16,7 +16,7 @@
%p=_'articles.about_bikebike.paragraphs.Who_is_Invited', :p %p=_'articles.about_bikebike.paragraphs.Who_is_Invited', :p
= columns(medium: 12) do = columns(medium: 12) do
%h3=_'articles.about_bikebike.headings.Types_of_Workshops', :t %h3=_'articles.about_bikebike.headings.Types_of_Workshops', :t
%figure{style: "background-image: url(#{image_url('columbus_people.jpg')})"} %figure{style: "background-image: url(#{image_path('columbus_people.jpg')})"}
%p=_'articles.about_bikebike.paragraphs.Types_of_Workshops', :p %p=_'articles.about_bikebike.paragraphs.Types_of_Workshops', :p
= columns(medium: 12) do = columns(medium: 12) do
%h3=_'articles.about_bikebike.headings.Amenities', :t %h3=_'articles.about_bikebike.headings.Amenities', :t

View File

@ -1,5 +1,5 @@
- content_for :banner do - content_for :banner do
- image = image_url(@banner_image || '403.jpg') - image = image_path(@banner_image || '403.jpg')
#header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"} #header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"}
- if capable_of(:svg) - if capable_of(:svg)
= render 'application/banner_image.svg', {:image => image} = render 'application/banner_image.svg', {:image => image}

View File

@ -1,5 +1,5 @@
- content_for :banner do - content_for :banner do
- image = image_url('grafitti.jpg') - image = image_path('grafitti.jpg')
#header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"} #header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"}
- if capable_of(:svg) - if capable_of(:svg)
= render 'application/banner_image.svg', {:image => image} = render 'application/banner_image.svg', {:image => image}

View File

@ -1,5 +1,5 @@
- content_for :banner do - content_for :banner do
- image = image_url('grafitti.jpg') - image = image_path('grafitti.jpg')
#header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"} #header-title.short{style: capable_of(:svg) ? nil : "background-image: url(#{image})"}
- if capable_of(:svg) - if capable_of(:svg)
= render 'application/banner_image.svg', {:image => image} = render 'application/banner_image.svg', {:image => image}