Files
openfoodnetwork/app/views/shopping_shared/_header.html.haml
Matt-Yorkley 91e88bd028 Allow conditional use of order cycle sidebar
We need to re-use the "shopping_shared/header" partial in multiple places, but we don't always want the (nested) order cycle sidebar inside it.
2020-03-25 23:07:39 +01:00

14 lines
374 B
Plaintext

- distributor = @order.andand.distributor || current_distributor
%navigation
%distributor.details.row
.small-12.medium-12.large-8.columns
#distributor_title
- if distributor.logo?
%img.left{src: distributor.logo.url(:thumb)}
%h3
= distributor.name
%location= distributor.address.city
= yield :ordercycle_sidebar