mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
This old gem implemented some functionality for handling nils which is no longer needed, as it's provided natively by Ruby with the &. operator.
13 lines
398 B
Plaintext
13 lines
398 B
Plaintext
- distributor = @order&.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)}
|
|
= render DistributorTitleComponent.new(name: distributor.name)
|
|
%location= distributor.address.city
|
|
|
|
= yield :ordercycle_sidebar
|