Merge pull request #4063 from luisramos0/dead_code

Remove dead code under views/spree/shared
This commit is contained in:
Luis Ramos
2019-08-30 22:39:01 +01:00
committed by GitHub
3 changed files with 0 additions and 42 deletions

View File

@@ -1,4 +0,0 @@
= address.address1
= ", #{address.address2}" unless address.address2.blank?
%br/
= [address.city, address.state_text, address.zipcode, address.country.name].compact.join ', '

View File

@@ -1,15 +0,0 @@
- filters = @taxon ? @taxon.applicable_filters : []
- unless filters.empty?
%nav#filters
- params[:search] ||= {}
- filters.each do |filter|
- labels = filter[:labels] || filter[:conds].map {|m,c| [m,m]}
- next if labels.empty?
%h6.filter_name= "Shop by #{filter[:name]}"
%ul.filter_choices
- labels.each do |nm,val|
%li.nowrap
- active = params[:search][filter[:scope]] && params[:search][filter[:scope]].include?(val.to_s)
= link_to nm, "?search[#{filter[:scope].to_s}][]=#{CGI.escape(val)}"

View File

@@ -1,23 +0,0 @@
- paginated_products = @searcher.retrieve_products if params.key?(:keywords)
- paginated_products ||= products
- if products.empty?
= t(:no_products_found)
- elsif params.key?(:keywords)
%h6.search-results-title= t(:search_results, :keywords => h(params[:keywords]))
- if products.any?
%ul#products.inline.product-listing{"data-hook" => ""}
- reset_cycle('default')
- products.each do |product|
- if Spree::Config[:show_zero_stock_products] || product.has_stock?
%li{:class => "columns three #{cycle("alpha", "secondary", "", "omega secondary")}", "data-hook" => "products_list_item", :id => "product_#{product.id}", :itemscope => "", :itemtype => "http://schema.org/Product"}
.product-image
= link_to small_image(product, :itemprop => "image"), product, :itemprop => 'url'
= link_to truncate(product.name, :length => 50), product, :class => 'info', :itemprop => "name", :title => product.name
%span.price.selling{:itemprop => "price"}= spree_number_to_currency(product.price)
- if paginated_products.respond_to?(:num_pages)
- params.delete(:search)
- params.delete(:taxon)
= paginate paginated_products