Files
openfoodnetwork/app/views/subscription_mailer/confirmation_summary_email.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

24 lines
640 B
Plaintext

%table.social.white-bg{:width => "100%"}
%tr
%td
%table.column{:align => "left"}
%tr
%td
%h3
= t(".greeting", name: @shop.contact_name)
%h4
= t(".intro", shop: @shop.name)
%table.column{:align => "left"}
%tr
%td{:align => "right"}
- if @shop.logo.variable?
= image_tag @shop.logo_url(:medium), class: "float-right"
%span.clear
= render 'summary_overview', summary: @summary
= render 'summary_detail', summary: @summary
%p  
= render 'shared/mailers/signoff'
= render 'shared/mailers/powered_by'