Files
openfoodnetwork/app/views/spree/shared/_payment.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

21 lines
643 B
Plaintext

%p.callout
%span{:style => "float:right;"}
- if @order.outstanding_balance?
= outstanding_balance_label(@order)
\:
%strong= @order.display_outstanding_balance
- else
- if @order.paid?
= t('.email_paid')
- else
= t('.email_not_paid')
%strong
= t('.email_summary')
- if @order.payments.any?
= render partial: 'spree/shared/payments_list', locals: { payments: @order.payments }
- if last_payment_method(@order).present?
%p.callout{style: "margin-top: 40px"}
%strong
= t('.email_description')
%p{style: "margin: 5px"}= last_payment_method(@order).description