<%- # 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 -%> <% unless Format::HTML.has_only_empty_tags(@event.receipt_message) %>
<%= raw(@event.receipt_message) %>

<% else %>

Hi <%= @supporter.name ? @supporter.name.split(' ').first : '' %>,


Below <%= @tickets.length == 1 ? 'is your ticket' : 'are your tickets' %> and event info for <%= @event.name %>

<% end %>
<%= render partial: 'ticket_mailer/tickets', locals: {tickets: @tickets} %>
<% if @event.organizer_email %> <% end %> <% if !@event.directions.blank? %> <% end %>
Event Info
Link <%= Format::Url.concat(root_url, @event.url) %>
Date & Time <%= Format::Date.full_range(@event.start_datetime, @event.end_datetime, @event.nonprofit.timezone) %>
Organizer Contact

<%= @event.organizer_email %>

Nonprofit <%= @event.nonprofit.name %>
Event Location

<%= @event.address %>

<%= @event.city %>, <%= @event.state_code %> <%= @event.zip_code %>

Map link

Additional Directions <%= @event.directions %>

<% if @charge %>

Your payment of $<%= Format::Currency.cents_to_dollars(@charge.amount) %> for the event <%= @event.name %> using <%= GetData.chain(@charge, :card, :name) || 'Unknown card' %> was successful.


This charge will appear on your card statement as: "Tickets <%= @event.name %>".


<%= render partial: 'charge_mailer/payment_receipt', locals: {charge: @charge} %>
<% end %> <%= render :partial => 'emails/nonprofit_sig', :locals => {:nonprofit => @event.nonprofit} %> <%= render "emails/powered_by" %>