Replace #image_path helper calls with #image_pack_path

This commit is contained in:
Matt-Yorkley
2021-06-14 13:37:35 +01:00
parent 3c9d461f5f
commit f2fc100b5f
12 changed files with 14 additions and 14 deletions

View File

@@ -6,7 +6,7 @@
%p.error{ ng: { show: 'error' } }
{{error}}
%img.spinner{ src: image_path("spinning-circles.svg"), ng: { show: "loading" } }
%img.spinner{ src: image_pack_path("spinning-circles.svg"), ng: { show: "loading" } }
%p{ ng: { show: "loading" } }
= t('js.admin.orders.index.please_wait')

View File

@@ -3,7 +3,7 @@
%form#image_upload{ name: 'form', novalidate: true, enctype: 'multipart/form-data', multipart: true, ng: { controller: "ProductImageCtrl" } }
%div.image-preview
%img.spinner{ src: image_path("spinning-circles.svg"), ng: { hide: "!imageUploader.isUploading" }}
%img.spinner{ src: image_pack_path("spinning-circles.svg"), ng: { hide: "!imageUploader.isUploading" }}
%img.preview{ng: {src: "{{imagePreview}}", class: "{'faded': imageUploader.isUploading}"}}
%label{for: 'image-upload', class: 'button'} {{ 'admin.products.index.upload_an_image' | t }}

View File

@@ -6,6 +6,6 @@
.sixteen.columns.alpha#loading{ 'ng-show' => 'productsLoading()' }
%br
%img.spinner{ src: image_path("spinning-circles.svg")}
%img.spinner{ src: image_pack_path("spinning-circles.svg")}
%h1
{{ 'js.admin.panels.exchange_products.loading_variants' | t }}

View File

@@ -1 +1 @@
%img.spinner{ src: image_path("spinning-circles.svg"), style: "max-width: 100%" }
%img.spinner{ src: image_pack_path("spinning-circles.svg"), style: "max-width: 100%" }

View File

@@ -2,7 +2,7 @@
.row
.small-12.text-center.columns
%h1
%img{src: image_path("logo-white-notext.png"), title: Spree::Config.site_name}
%img{src: image_pack_path("logo-white-notext.png"), title: Spree::Config.site_name}
%br/
%a.button.transparent{href: "/shops"}
= t :home_shop

View File

@@ -16,7 +16,7 @@
= csrf_meta_tags
%body.off-canvas{ style: "background-image: url(#{image_path('tile-wide.png')})", "data-turbo": "false" }
%body.off-canvas{ style: "background-image: url(#{image_pack_path('tile-wide.png')})", "data-turbo": "false" }
/ [if lte IE 8]
= render partial: "shared/ie_warning"
= javascript_include_tag "iehack"

View File

@@ -6,7 +6,7 @@
%h4= t(".message")
.row
.small-12.medium-3.large-2.columns.text-right.hide-for-small-only
%img{:src => image_path("potatoes.png") }
%img{:src => image_pack_path("potatoes.png") }
.small-12.medium-9.large-10.columns
%p
= t(".text")

View File

@@ -3,7 +3,7 @@
.row
.small-12.columns.text-center
.logo
%img{src: image_path("logo-white-notext.png") }
%img{src: image_pack_path("logo-white-notext.png") }
.row
.small-12.medium-8.medium-offset-2.columns.text-center
.alert-box

View File

@@ -10,17 +10,17 @@
.row
.small-4.columns.browserbtn
%a.browserlogo{href: "https://www.google.com/intl/en_au/chrome/browser/", target: "_blank"}
%img{src: image_path("browser-logos/chrome.png") }
%img{src: image_pack_path("browser-logos/chrome.png") }
%a{href: "https://www.google.com/intl/en_au/chrome/browser/", target: "_blank"}
= t :ie_warning_chrome
.small-4.columns.browserbtn
%a.browserlogo{href: "http://www.mozilla.org/en-US/firefox/new/", target: "_blank"}
%img{src: image_path("browser-logos/firefox.png") }
%img{src: image_pack_path("browser-logos/firefox.png") }
%a{href: "http://www.mozilla.org/en-US/firefox/new/", target: "_blank"}
= t :ie_warning_firefox
.small-4.columns.browserbtn
%a.browserlogo{href: "http://windows.microsoft.com/en-AU/internet-explorer/download-ie", target: "_blank"}
%img{src: image_path("browser-logos/internet-explorer.png") }
%img{src: image_pack_path("browser-logos/internet-explorer.png") }
%a{href: "http://windows.microsoft.com/en-AU/internet-explorer/download-ie", target: "_blank"}
= t :ie_warning_ie
.row.ie-msg

View File

@@ -3,6 +3,6 @@
%span
= t '.cart'
%span.count
%img{ src: image_path("menu/icn-cart.svg") }
%img{ src: image_pack_path("menu/icn-cart.svg") }
%span
{{ Cart.total_item_count() }}

View File

@@ -7,7 +7,7 @@
%li.user-menu.has-dropdown.not-click
%a{href: "#", class: "top-bar--menu-item-with-icon"}
%img{ src: image_path("menu/icn-profile.svg") }
%img{ src: image_pack_path("menu/icn-profile.svg") }
%span
= t '.profile'

View File

@@ -1,5 +1,5 @@
%li#login-link
%a{"auth" => "login"}
%img{ src: image_path("menu/icn-login.svg") }
%img{ src: image_pack_path("menu/icn-login.svg") }
%span
= t 'label_login'