{% extends request.is_ajax|yesno:'nullcont.htm,accounts/ext.htm' %}
{% load i18n %}

{% block content %}
    <div class="table-responsive">
        <table class="table table-striped table-bordered">
            <thead>
            <tr>
                <th>{% trans 'Date' %}</th>
                <th>{% trans 'Additional' %}</th>
                <th>{% trans 'Description' %}</th>
                <th>{% trans 'Meta information' %}</th>
            </tr>
            </thead>
            <tbody>
            {% for log in object_list %}
                <tr>
                    <td>{{ log.action_date|date:'D d E Y H:i:s' }}</td>
                    <td>{{ log.additional_text|default_if_none:'-' }}</td>
                    <td>{{ log.get_do_type_display }}</td>
                    <td>{{ log.meta_info }}</td>
                </tr>
            {% empty %}
                <tr><td colspan="4">{% trans 'That admin has no logs' %}</td></tr>
            {% endfor %}
            </tbody>
        </table>
    </div>
{% endblock %}
