{% extends "root.html" %}
{% block content %}
<div class="space-y-4 text-left">
{% include "admin/_mod_nav.html" %}
<div class="flex flex-wrap items-center justify-between gap-3">
<h1 class="text-3xl font-bold">Moderation log</h1>
<div class="flex items-center gap-2">
<form method="get" action="/admin/log" class="join"><input name="q" value="{{ q or '' }}" placeholder="Filter" class="input input-bordered input-sm join-item w-40"><button class="btn btn-sm join-item" type="submit"><i class="fas fa-filter"></i></button></form>
{% set toggle_base = "/admin/log" %}{% set view_mode = "classic" %}{% include "forum/_view_toggle.html" %}
</div>
</div>
{% if filter %}<p class="text-sm" data-filter>Entries by or about <a href="/admin/users/{{ filter.id }}" class="link font-medium">{{ filter.username }}</a> · <a href="/admin/log" class="link">everything</a></p>{% endif %}
{% if not entries %}<p class="opacity-70">Nothing logged yet.</p>{% else %}
<div class="overflow-x-auto">
<table class="table table-sm">
<thead><tr><th>When</th><th>Who</th><th>Action</th><th>Target</th><th>Reason</th></tr></thead>
<tbody>
{% for e in entries %}
<tr data-action="{{ e.action }}">
<td class="whitespace-nowrap text-xs" title="{{ e.when_abs }}">{{ e.when }}</td>
<td class="text-xs">{% if e.actor_id %}<a href="/admin/users/{{ e.actor_id }}" class="link link-hover">{{ e.actor }}</a>{% else %}{{ e.actor }}{% endif %}{% if e.source != "web" %} <span class="badge badge-ghost badge-xs">{{ e.source }}</span>{% endif %}</td>
<td class="text-xs font-medium">{{ e.action_label }}</td>
<td class="text-xs">{% if e.target_href %}<a href="{{ e.target_href }}" class="link link-hover">{{ e.target_label }}</a>{% else %}{{ e.target_label }}{% endif %}</td>
<td class="text-xs opacity-80">{{ e.reason or "" }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
2.0 KiB · text
History
3d71adc