{% extends "admin/index.html" %}
{% load i18n admin_urls %}

{% block sidebar %}
{{ block.super }}

{# this adds a new box to the admin homepage which contains links to extra moderation tools #}
<div style="float: left; width: 100%;">
    <div class="module">
        <table>
            <caption>
                {% trans "Extra moderation tools" %}
            </caption>
            <tbody>
                <tr>
                    <th scope="row">
                        <a href="{% url 'promptgame.custom_admin:basic_moderation_stats' %}">
                            {% trans "Moderation statistics" %}
                        </a>
                    </td>
                    <td>
                        {# empty td is needed to get full width #}
                    </td>
                </tr>
            </tbody>
        </table>
    </div>
</div>
{% endblock %}
