logs.html 50 lignes · 1422 octets
{% extends "base.html" %}

{% block title %}{{ page_title }}{% endblock %}

{% block navbar %}
{% include "components/navbar.html" %}
{% endblock %}

{% block content %}
<div class="container mx-auto px-4 py-4">
    <div class="text-sm breadcrumbs mb-3">
        <ul>
            <li><a href="/">{{ breadcrumb_home }}</a></li>
            <li><a href="/admin">{{ breadcrumb_admin }}</a></li>
            <li>{{ heading }}</li>
        </ul>
    </div>

    <h1 class="text-2xl font-bold mb-4">{{ heading }}</h1>

    {% if has_rows %}
    <div class="overflow-x-auto bg-base-100 shadow-md rounded-box">
        <table class="table table-sm">
            <thead>
                <tr>
                    <th>{{ col_date }}</th>
                    <th>{{ col_level }}</th>
                    <th>{{ col_action }}</th>
                    <th>{{ col_message }}</th>
                </tr>
            </thead>
            <tbody>
                {% for row in rows %}
                <tr>
                    <td class="whitespace-nowrap">{{ row.created_at }}</td>
                    <td>{{ row.level }}</td>
                    <td>{{ row.action }}</td>
                    <td>{{ row.message }}</td>
                </tr>
                {% endfor %}
            </tbody>
        </table>
    </div>
    {% else %}
    <div class="alert">
        <span>{{ empty }}</span>
    </div>
    {% endif %}
</div>
{% endblock %}