{% comment %}
{% endcomment %}
{% load i18n %}
<table class="table">
    <tr>
        <th class="text-center">{% translate "Submitted" %}</th>
        <th class="text-center">{% translate "Character" %}</th>
        <th class="text-center">{% translate "Form" %}</th>
        <th class="text-center">{% translate "Main Character" %}</th>
        <th class="text-center">{% translate "Reviewer" %}</th>
        <th class="text-center">{% translate "Status" %}</th>
        {% if perms.membertools.view_application %}
        <th class="text-center">{% translate "Actions" %}</th>
        {% endif %}
    </tr>
    {% for app in applications %}
        <tr>
            <td class="text-center">{{ app.submitted_on }}</td>
            <td class="text-center">{{ app.eve_character.character_name }}</td>
            <td class="text-center">{{ app.form }}</td>
            <td class="text-center">{{ app.main_character }}</td>
            <td class="text-center">{% if app.reviewer %}{{ app.reviewer.character_ownership.user.profile.main_character }}{% else %}-{% endif %}</td>
            <td class="text-center">
            {% include "membertools_admin/partials/app_status_label.html" with application=app %}
            </td>
            {% if perms.membertools.view_application %}
            <td class="text-center">
                <a href="{% url 'membertools_admin:view' app.id %}" class="btn btn-primary">
                    <span class="glyphicon glyphicon-eye-open"></span>
                </a>
            </td>
            {% endif %}
        </tr>
    {% empty %}
        <tr class="warning">
            <td colspan="7" class="text-center">The queue is empty. Yay! &#x1f37b;</td>
        </tr>
    {% endfor %}
</table>
