mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-11 03:40:20 +00:00
After re-arranging the locale file, the keys in the code needed to be adapted accordingly.
25 lines
865 B
Plaintext
25 lines
865 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")
|
|
= t("subscription_mailer.shared.contact_distributor_html", distributor: @order.distributor.name, email: @order.distributor.contact.email)
|
|
|
|
%p
|
|
%h4
|
|
= t("mailers_shared.order_confirmation_html", number: @order.number)
|
|
%p
|
|
= t(".details_html", distributor: @order.distributor.name)
|
|
|
|
= render 'spree/order_mailer/order_summary'
|
|
|
|
= render 'shared/mailers/signoff_distributor'
|