{% 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">
<div>
<h1 class="text-3xl font-bold">Flags</h1>
<p class="text-sm opacity-60">A post hides pending review when at least {{ threshold.min_flags }} people flag it and they are {{ threshold.ratio_pct }} of its readers, or {{ threshold.enough_flags }} flag it.</p>
</div>
<div class="flex items-center gap-2">
<a href="/admin/log" class="btn btn-ghost btn-sm"><i class="fas fa-clipboard-list mr-1"></i>Log</a>
{% set toggle_base = "/admin/flags" %}{% set view_mode = "classic" %}{% include "forum/_view_toggle.html" %}
</div>
</div>
{% if filter %}<p class="text-sm" data-filter>Flags {% if filter.role == "author" %}on posts by{% else %}raised by{% endif %} <a href="/admin/users/{{ filter.id }}" class="link font-medium">{{ filter.username }}</a> · <a href="/admin/flags" class="link">all flags</a></p>{% endif %}
{% if not items and not shadow %}
<p class="opacity-70" data-empty>Nothing to review.</p>
{% endif %}
{% if items %}
<div class="overflow-x-auto">
<table class="table table-sm">
<thead><tr><th>Post</th><th>Flags</th><th>Readers</th><th></th></tr></thead>
<tbody>{% for item in items %}{% include "admin/_flag_row.html" %}{% endfor %}</tbody>
</table>
</div>
{% endif %}
{% if shadow %}
<details data-shadow-queue>
<summary class="cursor-pointer text-sm opacity-70">{{ shadow | length }} post(s) flagged only by shadowbanned flaggers</summary>
<div class="overflow-x-auto mt-2">
<table class="table table-sm"><tbody>{% for item in shadow %}{% include "admin/_flag_row.html" %}{% endfor %}</tbody></table>
</div>
</details>
{% endif %}
</div>
{% endblock %}
neiam
/recourse
public · Issues · Pulls · Labels · Forks · Compare · Actions running · Badges · Packages
⭐
Log in to mark this repository.
1.8 KiB · text
History
3d71adc