mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-10 03:30:22 +00:00
To do so the shipment mailer and payment mailers need to know the @order Remove the 'callout' class from distributor signoff for uniformity and to keep the callout available for call to actions only Remaining translation keys for emails will be re-organized in a separate commit
18 lines
692 B
Plaintext
18 lines
692 B
Plaintext
- if @payment.order.distributor.logo.variable?
|
|
- @enterprise_for_logo = @payment.order.distributor
|
|
|
|
- greeting_key = "mailers_shared.enterprise_greeting"
|
|
- intro_key = ".intro_html"
|
|
|
|
= render partial: 'shared/mailers/greeting_and_intro',
|
|
locals: { greeting: t(greeting_key, name: @payment.order.distributor.contact_name),
|
|
intro: t(intro_key, order_number: @payment.order.number, distributor: @payment.order.distributor.name),
|
|
enterprise_for_logo: @enterprise_for_logo }
|
|
|
|
%p
|
|
= t(".instructions")
|
|
%p
|
|
= link_to spree.edit_admin_order_url(@payment.order), spree.edit_admin_order_url(@payment.order)
|
|
|
|
= render 'shared/mailers/signoff_instance'
|