From 35bd1257d919876f92dfa756fc1fe00eb6eec95b Mon Sep 17 00:00:00 2001 From: Will Marshall Date: Wed, 12 Mar 2014 15:23:35 +1100 Subject: [PATCH] Opening variants by default --- app/views/shop/shop/_products.html.haml | 2 ++ app/views/shop/shop/products.rabl | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/app/views/shop/shop/_products.html.haml b/app/views/shop/shop/_products.html.haml index 90a27d2c22..0a1f67d0e7 100644 --- a/app/views/shop/shop/_products.html.haml +++ b/app/views/shop/shop/_products.html.haml @@ -53,3 +53,5 @@ %tr.variant{"ng-repeat" => "variant in product.variants", "ng-show" => "product.show_variants"} = render partial: "shop/shop/variant" %input.button.right{type: :submit, value: "Add to Cart"} + + diff --git a/app/views/shop/shop/products.rabl b/app/views/shop/shop/products.rabl index 662196953e..c92a1afaa0 100644 --- a/app/views/shop/shop/products.rabl +++ b/app/views/shop/shop/products.rabl @@ -1,5 +1,10 @@ collection @products attributes :id, :name, :permalink, :count_on_hand, :on_demand, :group_buy + +node :show_variants do + true +end + node do |product| { notes: strip_tags(product.notes),