Files
MamieHenriette/webapp/templates/moderation.html
Mow aff236fd0c Ajouter un modèle d'avertissement et des fonctionnalités de modération
Ajout d'un nouveau modèle Warning dans database/models.py pour suivre les avertissements donnés aux utilisateurs.
Mise à jour de database/schema.sql pour créer la table correspondante 'warning'.
Amélioration du bot Discord pour gérer les commandes d'avertissement.
Ajout d'une route de modération dans webapp pour de futures fonctionnalités de modération.
Mise à jour de template.html pour inclure un lien vers la page de modération.
2025-10-14 22:37:28 +02:00

31 lines
639 B
HTML

{% extends "template.html" %}
{% block content %}
<h1>Modération Discord</h1>
<p>Liste des avertissements émis sur le serveur Discord.</p>
<table>
<thead>
<tr>
<th>Utilisateur</th>
<th>Discord ID</th>
<th>Date & Heure</th>
<th>Raison</th>
<th>Staff</th>
</tr>
</thead>
<tbody>
{% for warning in warnings %}
<tr>
<td>{{ warning.username }}</td>
<td>{{ warning.discord_id }}</td>
<td>{{ warning.created_at.strftime('%d/%m/%Y %H:%M') if warning.created_at else 'N/A' }}</td>
<td>{{ warning.reason }}</td>
<td>{{ warning.staff_name }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endblock %}