mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
27 lines
987 B
Plaintext
27 lines
987 B
Plaintext
%section#sidebar{ role: "complementary", "ng-controller" => "SidebarCtrl",
|
|
"ng-class" => "{'active' : active()}"}
|
|
|
|
- if spree_current_user.nil?
|
|
%tabset
|
|
= render partial: "shared/login_sidebar"
|
|
= render partial: "shared/signup_sidebar"
|
|
= render partial: "shared/forgot_sidebar"
|
|
- else
|
|
#account{"ng-controller" => "AccountSidebarCtrl"}
|
|
.row
|
|
.panel
|
|
%p
|
|
%strong= link_to "Manage my account", account_path
|
|
- if order = last_completed_order
|
|
%dl
|
|
%dt Last hub:
|
|
%dd
|
|
- if order.distributor != current_distributor
|
|
= link_to "#{order.distributor.name}".html_safe, "",
|
|
{class: distributor_link_class(order.distributor),
|
|
"ng-click" => "emptyCart('#{main_app.shop_enterprise_path(order.distributor)}', $event)"}
|
|
- else
|
|
= order.distributor.name
|
|
|
|
= yield :sidebar
|