houdini/app/views/donation_mailer/donor_payment_notification.html.erb
2020-06-15 10:26:57 -05:00

32 lines
1.2 KiB
Text

<%- # License: AGPL-3.0-or-later WITH WTO-AP-3.0-or-later
# Full license explanation at https://github.com/houdiniproject/houdini/blob/master/LICENSE -%>
<% if @thank_you_note %>
<div><%= raw(@thank_you_note) %></div>
<hr>
<% end %>
<% if @donation.recurring_donation %>
<p>
<%= t('mailer.donations.donor_receipt.recurring_donation_html', nonprofit_name: @nonprofit.name, start_date: simple_date(@donation.recurring_donation.created_at)) %>
</p>
<br>
<%else%>
<p>
<%= t('mailer.donations.donor_receipt.oneoff_donation_html', nonprofit_name: @nonprofit.name) %>
</p>
<br>
<%end%>
<p>
<%= t('mailer.donations.donor_receipt.transfer_info_html', label: t('mailer.donations.donor_receipt.transfer_label_html', nonprofit_statement: @nonprofit.statement)) %>
</p>
<br>
<%= render 'donation_mailer/donation_payment_table', donation: @donation, charge: @donation.charges.last %>
<% if @donation.recurring_donation %>
<p>
<%= t('mailer.donations.donor_receipt.recurring_donation_cancel_modify_html', management_url: edit_recurring_donation_url(@donation.recurring_donation, {t: @donation.recurring_donation.edit_token}))%>
</p>
<% end %>
<%= render 'emails/powered_by' %>