Finish Deface review, two defaces which appear on orders/show remain unchecked due to Spree 1.2 migration issue

This commit is contained in:
Rob H
2013-02-07 15:09:25 +11:00
parent 99b4530db2
commit 2a07d61e81
21 changed files with 78 additions and 67 deletions

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/checkout/edit",
:insert_after => "[data-hook='checkout_summary_box']",
:partial => "spree/checkout/other_available_distributors",
:name => "add_change_distributor_form_to_checkout_address",
:original => '60b9b1a39079f4efa85ff0425108edf671349d4f')

View File

@@ -1,4 +1,5 @@
Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
:insert_bottom => "[data-hook='inside_head']",
:partial => "layouts/feedback_script",
:name => "add_feedback_script")
:name => "add_feedback_script",
:original => '429dfd9824ee588f51fb1b69013933424f149592')

View File

@@ -1,16 +0,0 @@
# In sidebar, always render both taxonomies and filters
Deface::Override.new(:virtual_path => "spree/home/index",
:replace => "[data-hook='homepage_sidebar_navigation']",
:partial => 'spree/sidebar',
:name => 'sidebar')
Deface::Override.new(:virtual_path => "spree/products/index",
:replace => "[data-hook='homepage_sidebar_navigation']",
:partial => 'spree/sidebar',
:name => 'sidebar')
Deface::Override.new(:virtual_path => "spree/taxons/show",
:replace => "[data-hook='taxon_sidebar_navigation']",
:partial => 'spree/sidebar',
:name => 'sidebar')

View File

@@ -1,10 +0,0 @@
# Remove column layout from cart form items so we can style it with CSS
Deface::Override.new(:virtual_path => "spree/orders/edit",
:replace => "[data-hook='inside_cart_form']",
:partial => "spree/orders/inside_cart_form",
:name => "inside_cart_form")
Deface::Override.new(:virtual_path => "spree/orders/edit",
:replace => "#empty-cart[data-hook]",
:partial => "spree/orders/empty_cart_form",
:name => "empty_cart_form")

View File

@@ -0,0 +1,6 @@
# Remove column layout from cart form items so we can style it with CSS
Deface::Override.new(:virtual_path => "spree/orders/edit",
:replace => "#empty-cart[data-hook]",
:partial => "spree/orders/empty_cart_form",
:name => "rearrange_empty_cart_form",
:original => 'b5a751777e66ccbd45d7f1b980ecd201af94cb5b')

View File

@@ -0,0 +1,6 @@
# Remove column layout from cart form items so we can style it with CSS
Deface::Override.new(:virtual_path => "spree/orders/edit",
:replace => "[data-hook='inside_cart_form']",
:partial => "spree/orders/inside_cart_form",
:name => "rearrange_inside_cart_form",
:original => 'e30b0e749869c51f004242b0cb7be582b45e044e')

View File

@@ -1,4 +1,5 @@
Deface::Override.new(:virtual_path => "spree/checkout/_payment",
:replace => "code[erb-loud]:contains('submit_tag t(:save_and_continue)')",
:partial => "spree/checkout/process_my_order_button",
:name => "process_my_order_button")
:text => "<%= submit_tag 'Process My Order', :class => 'continue button primary' %>",
:name => "replace_checkout_payment_button",
:original => 'ce2043a01931b3bc16b045302ebb0e0bb9150b67')

View File

@@ -1,9 +0,0 @@
Deface::Override.new(:virtual_path => "spree/checkout/_address",
:replace => "[data-hook='shipping_fieldset_wrapper']",
:partial => "spree/checkout/distributor",
:name => "replace_shipping_form")
Deface::Override.new(:virtual_path => "spree/checkout/edit",
:insert_after => "[data-hook='checkout_summary_box']",
:partial => "spree/checkout/other_available_distributors",
:name => "other_available_distributors")

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/checkout/_address",
:replace => "[data-hook='shipping_fieldset_wrapper']",
:partial => "spree/checkout/distributor",
:name => "replace_shipping_address_form_with_distributor_details",
:original => '53e219f90a2e1ba702a767261d0c2afe100ac751')

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/layouts/admin",
:insert_bottom => "[data-hook='admin_inside_head']",
:partial => "layouts/auth_token_script",
:name => "set_auth_token_in_backend",
:original => '6bc2c5de1c8f7542d033548557437c9fe4b3ba02')

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
:insert_bottom => "[data-hook='inside_head']",
:partial => "layouts/auth_token_script",
:name => "set_auth_token_in_frontend",
:original => '5659ac7dbf6ac6469907b005b85285b894677815')

View File

@@ -1,9 +0,0 @@
Deface::Override.new(:virtual_path => "spree/layouts/spree_application",
:insert_bottom => "[data-hook='inside_head']",
:partial => "layouts/auth_token_script",
:name => "auth_token_script")
Deface::Override.new(:virtual_path => "spree/layouts/admin",
:insert_bottom => "[data-hook='admin_inside_head']",
:partial => "layouts/auth_token_script",
:name => "auth_token_script")

View File

@@ -0,0 +1,7 @@
# In sidebar, always render both taxonomies and filters
Deface::Override.new(:virtual_path => "spree/home/index",
:replace => "[data-hook='homepage_sidebar_navigation']",
:partial => 'spree/sidebar',
:name => 'sidebar_home_index',
:original => 'f5a06c5f558ec681c172ad62ddcf8f84ad0a99c4')

View File

@@ -0,0 +1,7 @@
# In sidebar, always render both taxonomies and filters
Deface::Override.new(:virtual_path => "spree/products/index",
:replace => "[data-hook='homepage_sidebar_navigation']",
:partial => 'spree/sidebar',
:name => 'sidebar_product_index',
:original => 'd9d1b3d18721e1c68eeaac898ca006bf8afb176c')

View File

@@ -0,0 +1,7 @@
# In sidebar, always render both taxonomies and filters
Deface::Override.new(:virtual_path => "spree/taxons/show",
:replace => "[data-hook='taxon_sidebar_navigation']",
:partial => 'spree/sidebar',
:name => 'sidebar_taxons_show',
:original => '697641363ffdb1fce91d8eea7cc883e983236ed2')

View File

@@ -1,19 +0,0 @@
Deface::Override.new(:virtual_path => "spree/home/index",
:replace => "[data-hook='homepage_products']",
:partial => "spree/shared/products_by_distributor",
:name => "products_home")
Deface::Override.new(:virtual_path => "spree/products/index",
:replace => "[data-hook='homepage_products']",
:partial => "spree/shared/products_by_distributor",
:name => "products_products")
Deface::Override.new(:virtual_path => "spree/products/index",
:replace => "[data-hook='search_results']",
:partial => "spree/shared/products_by_distributor",
:name => "products_search")
Deface::Override.new(:virtual_path => "spree/taxons/show",
:replace => "[data-hook='taxon_products']",
:partial => "spree/shared/products_by_distributor",
:name => "products_taxon")

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/home/index",
:replace => "[data-hook='homepage_products']",
:partial => "spree/shared/products_by_distributor",
:name => "split_products_by_distributor_on_home",
:original => '589053f6f3e534b0be729081bdfc0378beb29cca')

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/products/index",
:replace => "[data-hook='homepage_products']",
:partial => "spree/shared/products_by_distributor",
:name => "split_products_by_distributor_on_products_home",
:original => '22097416de0a5851d43c572301779de06ed84d17')

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/products/index",
:replace => "[data-hook='search_results']",
:partial => "spree/shared/products_by_distributor",
:name => "split_products_by_distributor_on_products_search",
:original => '5a764faee41bd3f2bb13b60bfeb61e63fede9fac')

View File

@@ -0,0 +1,5 @@
Deface::Override.new(:virtual_path => "spree/taxons/show",
:replace => "[data-hook='taxon_products']",
:partial => "spree/shared/products_by_distributor",
:name => "split_products_by_distributor_on_taxons_show",
:original => '27b6ecd3954022246568b3ddf5e80462aa511ece')

View File

@@ -1 +0,0 @@
<%= submit_tag "Process My Order", :class => 'continue button primary' %>