Files
openfoodnetwork/app/views/subscription_mailer/_header.html.haml
Maikel Linke 4facab0335 Guard against invariable file types
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.
2022-06-01 17:16:55 +10:00

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