mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Disabling the link when the previous distributor is the old distributor
This commit is contained in:
@@ -16,8 +16,11 @@
|
||||
%dl
|
||||
%dt Last hub:
|
||||
%dd
|
||||
= link_to "#{order.distributor.name}".html_safe, "",
|
||||
{class: distributor_link_class(order.distributor),
|
||||
"ng-click" => "emptyCart('#{main_app.shop_enterprise_path(order.distributor)}', $event)"}
|
||||
- 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
|
||||
|
||||
Reference in New Issue
Block a user