{% comment %}
    Params:
    characters: EveCharacter[]
    current_character: EveCharacter - Currently viewed character if any
    main_character: EveCharacter - Main character if available for the Main label
{% endcomment %}
{% load i18n %}
<table class="table">
    <tr>
        <th class="text-center hidden-xs hidden-sm"></th>
        <th class="text-center">{% translate "Name" %}</th>
        <th class="text-center">{% translate "Corp" %}</th>
        <th class="text-center">{% translate "Alliance" %}</th>
        <th class="text-center">{% translate "Actions" %}</th>
    </tr>
    {% for char in characters %}
        <tr>
            <td class="text-center hidden-xs hidden-sm">
                <img class="ra-avatar img-responsive img-circle" src="{{ char.portrait_url_32 }}" width="32" height="32">
            </td>
            <td class="text-center">{{ char.character_name }}{% if main_character and char == main_character %} <span class="label label-primary">Main</span>{% endif %}</td>
            <td class="text-center">{{ char.corporation }}</td>
            <td class="text-center">{{ char.alliance }}</td>
            <td class="text-center">
            {% if char == current_character %}
                <a href="" class="btn btn-primary disabled" disabled="">
                    <span class="glyphicon glyphicon-eye-close"></span>
                </a>
            {% elif char.next_character %}
                <a href="{% url 'membertools_admin:char_detail_view' char.next_character.id %}" class="btn btn-primary">
                    <span class="glyphicon glyphicon-eye-open"></span>
                </a>
            {% else %}
                <a href="{% url 'membertools_admin:char_detail_lookup' char.character_id %}" class="btn btn-primary">
                    <span class="glyphicon glyphicon-plus"></span>
                </a>
            {% endif %}
            </td>
        </tr>
    {% endfor %}
</table>
