SielBotWebsite/templates/mod_cases.html
Maaxxs a3b85dfa80 Moderation, Transkript-Links und Namen bei Zugängen
Moderation mit AutoMod-Regeln, automatischen Aktionen, eingeschränkten Kanälen, Audit-Log,
Befehlsübersicht und Fallliste. Ticket-Transkripte sind über einen geheimen Link lesbar
(/transkript/...). Zugänge bekommen einen optionalen Namen.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-09-29 07:33:23 +02:00

51 lines
2.4 KiB
HTML

{% extends "base.html" %}
{% block title %}Fälle{% endblock %}
{% block content %}
<div class="page-head">
<a href="/moderation" class="back-link">← Moderation</a>
<h1>Verwarnungen und Fälle</h1>
<p class="muted">Alles, was Moderatoren und AutoMod getan haben. „Aufheben“ nimmt eine Verwarnung aus der Zählung für die automatischen Aktionen.</p>
</div>
{% if error %}<div class="flash flash-error">{{ error }}</div>{% endif %}
<form method="get" action="/moderation/faelle" class="panel inline-form">
<label class="small muted">Nur eine Person (Discord-ID)
<input type="text" name="nutzer" value="{{ nutzer }}" inputmode="numeric" pattern="[0-9]*" class="input-id">
</label>
<button type="submit" class="btn btn-sm btn-secondary">Filtern</button>
{% if nutzer %}<a href="/moderation/faelle" class="small">Alle zeigen</a>{% endif %}
</form>
<section class="panel">
{% if cases %}
<div class="table-wrap">
<table class="table">
<thead><tr><th>#</th><th>Art</th><th>Mitglied</th><th>Von</th><th>Grund</th><th>Wann</th><th></th></tr></thead>
<tbody>
{% for c in cases %}
<tr class="{{ '' if c.active else 'row-off' }}">
<td>{{ c.id }}</td>
<td><span class="tag tag-case-{{ c.type }}">{{ meta.case_labels.get(c.type, c.type) }}</span></td>
<td><a href="/moderation/faelle?nutzer={{ c.user_id }}">{{ c.user_name }}</a><div class="muted small">{{ c.user_id }}</div></td>
<td>{{ c.mod_name or "AutoMod" }}</td>
<td class="small">{{ c.reason or "" }}
{% if c.expires_at and c.type in ("timeout", "tempban") %}<div class="muted">bis {{ c.expires_at | datetime }}</div>{% endif %}</td>
<td class="small nowrap">{{ c.created_at | datetime }}</td>
<td>
{% if c.active and c.type in ("warn", "automod") %}
<form method="post" action="/moderation/faelle/{{ c.id }}/aufheben">
<input type="hidden" name="csrf" value="{{ csrf }}">
<button type="submit" class="btn btn-sm btn-secondary">Aufheben</button>
</form>
{% elif not c.active %}<span class="muted small">aufgehoben</span>{% endif %}
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% else %}
<p class="muted">Keine Einträge.</p>
{% endif %}
</section>
{% endblock %}