mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Split products by local/remote distributor: style
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user