mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-26 20:56:48 +00:00
Australian production had one JPG image which was not recognised as such. The `content_type` was missing and trying to generate a URL for a variant raised an error and crashed the page. Testing for `variable?` includes testing for `attached?` and is more defensive.
13 lines
418 B
Plaintext
13 lines
418 B
Plaintext
- distributor = @order&.distributor || current_distributor
|
|
|
|
%navigation
|
|
%distributor.details.row
|
|
.small-12.medium-12.large-8.columns
|
|
#distributor_title
|
|
- if distributor.logo.variable?
|
|
= image_tag distributor.logo_url(:thumb), class: "left"
|
|
= render DistributorTitleComponent.new(name: distributor.name)
|
|
%location= distributor.address.city
|
|
|
|
= yield :ordercycle_sidebar
|