mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-06 22:36:07 +00:00
25 lines
1.1 KiB
Plaintext
25 lines
1.1 KiB
Plaintext
.darkswarm
|
|
= inject_orders_by_distributor
|
|
|
|
.row.pad-top
|
|
.small-12.columns.pad-top
|
|
%h2= accurate_title
|
|
.account-summary{"data-hook" => "account_summary"}
|
|
= @user.email
|
|
(#{link_to t(:edit), spree.edit_account_path})
|
|
%h3= t(:my_orders)
|
|
.orders{"ng-controller" => "OrdersCtrl", "ng-cloak" => true}
|
|
.row{bindonce: true}
|
|
.small-12.columns
|
|
.active_table
|
|
%distributor.active_table_node.row.animate-repeat{"ng-if" => "Orders.orders_by_distributor.length > 0", "ng-repeat" => "(key, distributor) in Orders.orders_by_distributor",
|
|
"ng-controller" => "DistributorNodeCtrl",
|
|
"ng-class" => "{'closed' : !open(), 'open' : open(), 'inactive' : !distributor.active}",
|
|
id: "{{distributor.hash}}"}
|
|
.small-12.columns
|
|
= render partial: "spree/users/skinny"
|
|
= render partial: "spree/users/fat"
|
|
.message{"ng-if" => "Orders.orders_by_distributor.length == 0", "bo-text" => "'you_have_no_orders_yet' | t"}
|
|
|
|
= render partial: "shared/footer"
|