Split products by local/remote distributor: style

This commit is contained in:
Rohan Mitchell
2012-06-24 09:41:33 +10:00
parent 34f95ffb4a
commit 9be5dc41b9
2 changed files with 15 additions and 2 deletions

View File

@@ -98,3 +98,12 @@ ul.product-listing {
}
}
}
/* Highlight local products in distributor-split product listings */
#products-local ul {
margin-bottom: 1em;
padding: 10px;
border-radius: 10px;
background-color: #def;
}

View File

@@ -1,5 +1,9 @@
- if @products
#products= render 'spree/shared/products', :products => @products, :taxon => @taxon
- else
#products-local= render 'spree/shared/products', :products => @products_local, :taxon => @taxon
#products-remote= render 'spree/shared/products', :products => @products_remote, :taxon => @taxon
#products-local
%h2= "Products at #{current_distributor.name}"
= render 'spree/shared/products', :products => @products_local, :taxon => @taxon
#products-remote
%h2 Products found elsewhere
= render 'spree/shared/products', :products => @products_remote, :taxon => @taxon