Skip to content

Commit

Permalink
Move images to asset pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
dacook committed Apr 13, 2023
1 parent 5d2c156 commit e866547
Show file tree
Hide file tree
Showing 17 changed files with 17 additions and 27 deletions.
2 changes: 1 addition & 1 deletion app/views/admin/producer_properties/_form.html.haml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
%fieldset.no-border-top
.add_producer_properties{"data-hook" => "add_producer_properties"}
= image_pack_tag 'spinner.gif', :plugin => 'spree', :style => 'display:none;', :id => 'busy_indicator'
= image_tag 'spinner.gif', :plugin => 'spree', :style => 'display:none;', :id => 'busy_indicator'
%table.index.sortable{"data-hook" => "", "data-sortable-link" => main_app.update_positions_admin_enterprise_producer_properties_url(@enterprise)}
%thead
%tr{"data-hook" => "producer_properties_header"}
Expand Down
2 changes: 1 addition & 1 deletion app/views/components/_spinner.html.haml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
%img.spinner{ src: image_pack_path("spinning-circles.svg"), style: "max-width: 100%" }
%img.spinner{ src: image_path("spinning-circles.svg"), style: "max-width: 100%" }
2 changes: 1 addition & 1 deletion app/views/home/_tagline.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
.row
.small-12.text-center.columns
%h1
%img{src: image_pack_path("logo-white-notext.png"), title: Spree::Config.site_name}
%img{src: image_path("logo-white-notext.png"), title: Spree::Config.site_name}
%br/
%a.button.transparent{href: "/shops"}
= t :home_shop
2 changes: 1 addition & 1 deletion app/views/layouts/registration.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
= csrf_meta_tags
%body.off-canvas{ style: "background-image: url(#{image_pack_path('tile-wide.png')})", "data-turbo": "false" }
%body.off-canvas{ style: "background-image: url(#{image_path('tile-wide.png')})", "data-turbo": "false" }
.off-canvas-wrap{offcanvas: true}
.inner-wrap

Expand Down
2 changes: 1 addition & 1 deletion app/views/producers/_fat.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
%p.word-wrap{"ng-if" => "::producer.whatsapp_phone"}
%a{"ng-href" => "{{::producer.whatsapp_url}}", target: "_blank"}
%img{ src: image_pack_path("social-logos/whatsapp.svg") }
%img{ src: image_path("social-logos/whatsapp.svg") }
%span{"ng-bind" => "::producer.whatsapp_phone"}
%p.word-wrap{"ng-if" => "::producer.email_address"}
Expand Down
2 changes: 1 addition & 1 deletion app/views/registration/steps/_limit_reached.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
%h4= t(".message")
.row
.small-12.medium-3.large-2.columns.text-right.hide-for-small-only
%img{:src => image_pack_path("potatoes.png") }
%img{:src => image_path("potatoes.png") }
.small-12.medium-9.large-10.columns
%p
= t(".text")
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/_footer.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
.row
.small-12.columns.text-center
.logo
%img{src: image_pack_path("logo-white-notext.png") }
%img{src: image_path("logo-white-notext.png") }
.row
.small-12.medium-8.medium-offset-2.columns.text-center
.alert-box
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/menu/_cart.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
%span
= t '.cart'
%span.count
%img{ src: image_pack_path("menu/icn-cart.svg") }
%img{ src: image_path("menu/icn-cart.svg") }
%span
{{ Cart.total_item_count() }}
4 changes: 2 additions & 2 deletions app/views/shared/menu/_mobile_menu.html.haml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
%nav.tab-bar.show-for-medium-down
%section.left
%a.left-off-canvas-toggle.menu-icon
= image_pack_tag "menu/btn-menu-mobile.png"
= image_tag "menu/btn-menu-mobile.png"

%section.left
.ofn-logo
Expand All @@ -14,7 +14,7 @@
%span
= t '.cart'
%span.count
= image_pack_tag "menu/icn-cart.svg"
= image_tag "menu/icn-cart.svg"
%span
{{ Cart.total_item_count() }}
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/menu/_signed_in.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
%li.user-menu.has-dropdown.not-click

%a{href: "#", class: "top-bar--menu-item-with-icon"}
%img{ src: image_pack_path("menu/icn-profile.svg") }
%img{ src: image_path("menu/icn-profile.svg") }
%span
= t '.profile'
Expand Down
2 changes: 1 addition & 1 deletion app/views/shared/menu/_signed_out.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
%li#login-link{ "data-controller": "login-modal" }
%a{"auth": "login", "data-action": "click->login-modal#call" }
%img{ src: image_pack_path("menu/icn-login.svg") }
%img{ src: image_path("menu/icn-login.svg") }
%span
= t 'label_login'
2 changes: 1 addition & 1 deletion app/views/shop/products/_searchbar.haml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"ng-debounce" => "200",
"disable-enter-with-blur" => true}
%a.clear{type: 'button', ng: {show: 'query', click: 'clearQuery()'}, 'focus-search' => true}
= image_pack_tag "icn-close.png"
= image_tag "icn-close.png"
.hide-for-large-up
%button{type: 'button', ng: {click: 'toggleFilterSidebar()'}}
Expand Down
2 changes: 1 addition & 1 deletion app/views/shopping_shared/tabs/_contact.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
%br
- if current_distributor.whatsapp_phone.present?
%a{href: current_distributor.whatsapp_url, target: "_blank" }
%img{ src: image_pack_path("social-logos/whatsapp.svg") }
%img{ src: image_path("social-logos/whatsapp.svg") }
= current_distributor.whatsapp_phone
%br
- if current_distributor.website.present?
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,5 +41,5 @@
%a.info.cvvLink{href: "/content/cvv", target: "_blank"}
(#{t(:what_is_this)})
.nine.columns
= image_pack_tag 'credit_cards/credit_card.gif', class: 'credit-card-image'
= image_tag 'credit_cards/credit_card.gif', class: 'credit-card-image'
.clear
2 changes: 1 addition & 1 deletion app/views/spree/admin/product_properties/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
= form_for @product, url: admin_product_url(@product, @url_filters), method: :put do |f|
%fieldset.no-border-top
.add_product_properties
= image_pack_tag 'select2-spinner.gif', plugin: 'spree', style: 'display:none;', id: 'busy_indicator'
= image_tag 'select2-spinner.gif', plugin: 'spree', style: 'display:none;', id: 'busy_indicator'

%table.index.sortable{"data-sortable-link" => update_positions_admin_product_product_properties_url}
%thead
Expand Down
2 changes: 1 addition & 1 deletion app/views/spree/admin/states/index.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
- databaseurl = "#{admin_states_path(format: :js)}?country_id="
%select#country.observe_field.select2.fullwidth{"data-base-url" => databaseurl, "data-update" => "#state-list"}
= options_from_collection_for_select(@countries, :id, :name, @country.id)
= image_pack_tag 'select2-spinner.gif', plugin: 'spree', style: 'display:none;', id: 'busy_indicator'
= image_tag 'select2-spinner.gif', plugin: 'spree', style: 'display:none;', id: 'busy_indicator'
#state-list
= render partial: 'state_list'
10 changes: 0 additions & 10 deletions config/initializers/webpack.rb

This file was deleted.

0 comments on commit e866547

Please sign in to comment.