Files
openfoodnetwork/app/views/subscription_mailer/empty_email.html.haml
drummer83 03ccd862d3 Re-arrange the email parts of the en.yml file to make the content structure follow the file structure and enable more lazy lookup throughout the files.
After re-arranging the locale file, the keys in the code needed to be adapted accordingly.
2024-09-21 13:20:37 +02:00

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'