{% load i18n template_tools %}
{% for training in training_list %}
    {% if not excluded_ids or training.id not in excluded_ids %}
        <tr class="training-row training_item_{{ training.id }}" data-href="{{ training.get_detail_url }}">
            <td>
                {% include 'trainings/training_actions.html' %}
            </td>
            <td>
                <i class="training-status-icon fa fa-{% nospaces %}
                    {% if training.version_state == training.VERSION_STATES.DRAFT %}pencil{% endif %}
                    {% if training.version_state == training.VERSION_STATES.PUBLISHED %}paper-plane{% endif %}
                    {% if training.version_state == training.VERSION_STATES.ARCHIVED %}archive{% endif %}
                {% endnospaces %}"></i>
                {{ training.get_version_state_display }}
            </td>
            <td>
                <a href="{{ training.get_detail_url }}">
                    <strong>{{ training.name }}</strong>
                </a>
                {% if training.notice %}
                    <aside>{{ training.notice }}</aside>
                {% endif %}
            </td>
            <td>
                {{ training.business_unit.name }}
            </td>
            {% comment %} time format in 24h {% endcomment %}
            <td>{{ training.created_at|date:'SHORT_DATE_FORMAT' }} - {{ training.created_at|time:'H:i' }}</td>
            {% comment %}
                {% if user_can_have_survey %}
                    <td>
                        <a class="btn btn-default" href="{{ training.get_survey_url }}">
                            <i class="fa fa-list-ul"></i>
                        </a>
                    </td>
                {% endif %}
            {% endcomment %}
        </tr>
    {% endif %}
{% endfor %}
