byceps/blueprints/site/user_profile/templates/site/user_profile/_current_party_attendance.html
{%- from 'macros/misc.html' import render_tag %}
{%- from 'macros/seating.html' import render_seat_link %}
<div class="block">
{%- if current_party_tickets %}
<h2 class="title">{{ ngettext('Seat', 'Seats', current_party_tickets|length) }}</h2>
<table class="itemlist is-compact is-vcentered is-wide">
<tbody>
{%- for ticket in current_party_tickets %}
<tr>
<td>{{ render_seat_link(ticket.occupied_seat) if ticket.occupied_seat else _('not chosen')|dim }}</td>
<td>
{%- if ticket.user_checked_in -%}
{{ render_tag(_('checked in')) }}
{%- endif -%}
</td>
</tr>
{%- endfor %}
</tbody>
</table>
{%- endif %}
</div>