Files
openfoodnetwork/app/views/shared/menu/_cart.html.haml
2014-07-24 16:02:10 +10:00

26 lines
919 B
Plaintext

%span{"ng-controller" => "CartCtrl"}
%a#cart.icon{cart: true}
%span.nav-branded
%i.ofn-i_027-shopping-cart
%span
{{ Cart.line_items_present().length }}
items
.joyride-tip-guide{"ng-class" => "{ in: open }", "ng-show" => "open"}
%span.joyride-nub.top
.joyride-content-wrapper
%ul
%li{"ng-repeat" => "line_item in Cart.line_items_present()",
"ng-controller" => "LineItemCtrl"}
{{ line_item.variant.name_to_display }}
({{line_item.quantity}})
x
{{ line_item.variant.unit_to_display }}
x
{{ line_item.variant.price | currency }}
is
{{ line_item.variant.getPrice() | currency }}
%li{"ng-show" => "Cart.line_items_present().length > 0"}
Total: {{ Cart.total() | currency }}
%a.button{href: checkout_path, "ng-disabled" => "Cart.dirty"} Checkout now