From feab2beb95f3e17e31a55ba10f3bea4e6b14446b Mon Sep 17 00:00:00 2001 From: Godwin Date: Tue, 1 Sep 2015 22:15:15 -0700 Subject: [PATCH] A few more absolute urls --- app/assets/images/{xconference.jpg => workshop.jpg} | Bin app/views/application/404.html.haml | 2 +- app/views/application/about.html.haml | 4 ++-- app/views/application/permission_denied.html.haml | 2 +- app/views/pages/translations_index.html.haml | 2 +- app/views/translations/index.html.haml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) rename app/assets/images/{xconference.jpg => workshop.jpg} (100%) diff --git a/app/assets/images/xconference.jpg b/app/assets/images/workshop.jpg similarity index 100% rename from app/assets/images/xconference.jpg rename to app/assets/images/workshop.jpg diff --git a/app/views/application/404.html.haml b/app/views/application/404.html.haml index 86b1dc7..bd333f5 100644 --- a/app/views/application/404.html.haml +++ b/app/views/application/404.html.haml @@ -1,5 +1,5 @@ - 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})"} - if capable_of(:svg) = render 'application/banner_image.svg', {:image => image} diff --git a/app/views/application/about.html.haml b/app/views/application/about.html.haml index 7decea2..007dd77 100644 --- a/app/views/application/about.html.haml +++ b/app/views/application/about.html.haml @@ -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 = row do = columns(medium: 12) do @@ -16,7 +16,7 @@ %p=_'articles.about_bikebike.paragraphs.Who_is_Invited', :p = columns(medium: 12) do %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 = columns(medium: 12) do %h3=_'articles.about_bikebike.headings.Amenities', :t diff --git a/app/views/application/permission_denied.html.haml b/app/views/application/permission_denied.html.haml index 53cfe8c..4d051b5 100644 --- a/app/views/application/permission_denied.html.haml +++ b/app/views/application/permission_denied.html.haml @@ -1,5 +1,5 @@ - 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})"} - if capable_of(:svg) = render 'application/banner_image.svg', {:image => image} diff --git a/app/views/pages/translations_index.html.haml b/app/views/pages/translations_index.html.haml index 8ed4fd6..385a095 100644 --- a/app/views/pages/translations_index.html.haml +++ b/app/views/pages/translations_index.html.haml @@ -1,5 +1,5 @@ - 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})"} - if capable_of(:svg) = render 'application/banner_image.svg', {:image => image} diff --git a/app/views/translations/index.html.haml b/app/views/translations/index.html.haml index e0c741b..a498615 100644 --- a/app/views/translations/index.html.haml +++ b/app/views/translations/index.html.haml @@ -1,5 +1,5 @@ - 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})"} - if capable_of(:svg) = render 'application/banner_image.svg', {:image => image}