{% load bob %}
{% load i18n %}
{% if transitions_history %}
<div>
    <h5>{% trans "Transition history" %}</h5>
    <table class="table table-striped table-bordered details-history">
        <thead><tr>
            <th>{% trans "Date" %}</th>
            <th>{% trans "Type" %}</th>
            <th>{% trans "Author" %}</th>
            <th>{% trans "Affected user" %}</th>
            <th>{% trans "Report" %}</th>
        </tr></thead>
        <tbody>
        {% for h in transitions_history %}
            <tr>
                <td>{{ h.created|timesince_limited }}</td>
                <td>{{ h.transition.name }}</td>
                <td>{{ h.logged_user }}</td>
                <td>{{ h.affected_user }}</td>
                <td><a href="{% url transition_history_file h.id %}">{% trans "download" %}</a></td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>
{% endif %}
