add loggers actions

This commit is contained in:
Tykayn 2025-06-26 23:14:22 +02:00 committed by tykayn
parent 59398d14ba
commit 12d4db370f
22 changed files with 517 additions and 218 deletions

View file

@ -0,0 +1,29 @@
{% extends 'base.html.twig' %}
{% block title %}Logs d'action{% endblock %}
{% block body %}
<div class="container mt-4">
<h1>100 derniers logs d'action</h1>
<table class="table table-striped table-bordered">
<thead>
<tr>
<th>Date</th>
<th>Type</th>
<th>Données</th>
</tr>
</thead>
<tbody>
{% for log in logs %}
<tr>
<td>{{ log.createdAt|date('Y-m-d H:i:s') }}</td>
<td>{{ log.type }}</td>
<td><pre style="white-space: pre-wrap;">{{ log.data|json_encode(constant('JSON_PRETTY_PRINT')) }}</pre></td>
</tr>
{% else %}
<tr><td colspan="3">Aucun log trouvé.</td></tr>
{% endfor %}
</tbody>
</table>
</div>
{% endblock %}

View file

@ -16,7 +16,7 @@
{{ 'display.stats'|trans }}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="https://openstreetmap.fr/contact/">
<a class="nav-link" href="{{ path('app_public_ask_for_help') }}">
<i class="bi bi-envelope-fill"></i>
{{ 'display.contact_humans'|trans }}</a>
</li>