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

21 lines
705 B
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 -%>
<p>
<strong><%= @supporter.name || @supporter.email %></strong>
redeemed the following tickets for <strong><a href='<%= Format::Url.concat(root_url, @event.url) %>'><%= @event.name %></a></strong>
on
<%= simple_date @tickets.last.created_at %>.</p><br>
<%= render 'components/email/supporter_table', supporter: @supporter %>
<br>
<% if @charge %>
<%= render 'charge_mailer/payment_receipt', charge: @charge %>
<% end %>
<hr>
<p>The above supporter has redeemed these tickets:</p><br>
<%= render 'ticket_mailer/tickets', tickets: @tickets %>