mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46: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.
17 lines
498 B
Plaintext
17 lines
498 B
Plaintext
%table.social.white-bg{:width => "100%"}
|
|
%tr
|
|
%td
|
|
%table.column{:align => "left"}
|
|
%tr
|
|
%td
|
|
%h3
|
|
= t :email_confirm_customer_greeting, name: @order.bill_address.firstname
|
|
%h4
|
|
= intro
|
|
%table.column{:align => "left"}
|
|
%tr
|
|
%td{:align => "right"}
|
|
- if @order.distributor.logo.variable?
|
|
= image_tag @order.distributor.logo_url(:medium), class: "float-right"
|
|
%span.clear
|