{% load i18n %}
<div class="table-container scroll-300">
    <table class="table table-hover">
        <thead>
            <tr>
                <th scope="col" class="w-25">
                    {% trans 'Timestamp' %}
                </th>
                <th scope="col">
                    {% trans 'Action' %}
                </th>
                <th scope="col">
                    {% trans 'Details' %}
                </th>
                <th scope="col">
                    {% trans 'User' %}
                </th>
            </tr>
        </thead>
        <tbody>
        {% for entry in log %}
            <tr>
                <td>
                    {{entry.timestamp}}
                </td>
                <td>
                    {{ entry.action_humanize}}
                </td>
                <td>
                    {{ entry.comment|default_if_none:"-" }}
                </td>
                <td>
                    {{entry.user}}
                </td>
            </tr>
        {% endfor %}
        </tbody>
    </table>
</div>