houdini/app/views/ticket_mailer/_tickets.html.erb

43 lines
1 KiB
Text

<table class='table'>
<thead>
<th colspan='2'>
Ticket<%= tickets.length == 1 ? '' : 's' %>
</th>
</thead>
<tbody>
<% tickets.each do |ticket| %>
<tr>
<td>
<strong>Ticket Level</strong>
</td>
<td>
<%= GetData.chain(ticket, :ticket_level, :name) != nil ? GetData.chain(ticket, :ticket_level, :name) : 'n/a' %>
</td>
</tr>
<tr>
<td><strong>Quantity</strong></td>
<td> <%= ticket.quantity %></td>
</tr>
<tr>
<td><strong>Name</strong></td>
<td> <%= GetData.chain(ticket, :supporter, :name) %></td>
</tr>
<tr>
<td><strong>Email</strong></td>
<td><%= GetData.chain(ticket, :supporter, :email) %></td>
</tr>
<tr>
<td><strong>Ticket ID</strong></td>
<td> <%= ticket.id %></td>
</tr>
<tr>
<td><strong>Comment</strong></td>
<td> <%= GetData.chain(ticket, :donation, :comment) || 'None' %></td>
</tr>
<% if tickets.length != 1 %>
<tr colspan='2'><td><p></p></td></tr>
<% end %>
<% end %>
</tbody>
</table>