Separate mobile menu cart code from large menu cart code

This commit is contained in:
luisramos0
2019-05-24 15:17:41 +01:00
parent ec9d50c824
commit 0dc0776705
2 changed files with 12 additions and 2 deletions

View File

@@ -9,8 +9,15 @@
%img{src: ContentConfig.logo_mobile.url, srcset: ContentConfig.logo_mobile_svg.url, width: "75", height: "26"}
%section.right{"ng-cloak" => true}
.cart
= render partial: "shared/menu/cart"
%span.cart-span{"ng-controller" => "CartCtrl", "ng-class" => "{ dirty: Cart.dirty || Cart.empty(), 'pure-dirty': Cart.dirty }"}
%a.icon{href: main_app.checkout_path}
%span
= t '.cart'
%span.count
%img{ src: "/assets/menu/icn-cart.svg" }
%span
{{ Cart.total_item_count() }}
%a{href: main_app.shop_path}
{{ CurrentHub.hub.name }}

View File

@@ -1113,10 +1113,13 @@ en:
shared:
menu:
cart:
cart: "Cart"
checkout: "Checkout now"
already_ordered_products: "Already ordered in this order cycle"
signed_in:
profile: "Profile"
mobile_menu:
cart: "Cart"
register_call:
selling_on_ofn: "Interested in getting on the Open Food Network?"
register: "Register here"