mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-04-03 06:59:14 +00:00
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.
27 lines
931 B
Plaintext
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'
|