Files
openfoodnetwork/app/views/subscription_mailer/empty_email.html.haml
drummer83 2b1e8627a5 Improve subscription mails
All customer facing mails: Rephrase wording regarding contact email.

Order placement email: Replace 'Order confirmation' with 'Order summary' because the order is confirmed when the order cycle closes.

The rest are styling and wording improvements.
2024-09-21 13:20:37 +02:00

27 lines
931 B
Plaintext

- if @order.distributor.logo.variable?
- @enterprise_for_logo = @order.distributor
- greeting_key = "mailers_shared.customer_greeting"
- intro_key = ".intro_html"
= render partial: 'shared/mailers/greeting_and_intro',
locals: { greeting: t(greeting_key, name: @order.bill_address.firstname),
intro: t(intro_key, distributor: @order.distributor.name),
enterprise_for_logo: @enterprise_for_logo }
%p.callout
= t(".explainer_html")
%br
= t("subscription_mailer.shared.contact_distributor_html", distributor: @order.distributor.name)
%a{:href => "mailto:#{@order.distributor.contact.email}", :target => "_blank"}
= @order.distributor.contact.email
%h3
= t("mailers_shared.order_summary_html", number: @order.number)
%p
= t(".details_html", distributor: @order.distributor.name)
= render 'shared/mailers/order_summary'
= render 'shared/mailers/signoff_distributor'