mirror of
https://github.com/skylanix/MamieHenriette.git
synced 2026-02-06 14:50:34 +01:00
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.
31 lines
639 B
HTML
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 %}
|
|
|
|
|