| 1 |
{% extends "base.html" %} |
| 2 |
|
| 3 |
{% block title %}Mod Log — {{ community_name }} — Multithreaded{% endblock %} |
| 4 |
|
| 5 |
{% block head %}<meta name="robots" content="noindex">{% endblock %} |
| 6 |
|
| 7 |
{% block header %}{% include "partials/site_header.html" %}{% endblock %} |
| 8 |
|
| 9 |
{% block content %} |
| 10 |
<div class="container"> |
| 11 |
<div class="breadcrumb"> |
| 12 |
<a href="/">Forums</a> |
| 13 |
<span class="sep">/</span> |
| 14 |
<a href="/p/{{ community_slug }}">{{ community_name }}</a> |
| 15 |
<span class="sep">/</span> |
| 16 |
<a href="/p/{{ community_slug }}/moderation">Moderation</a> |
| 17 |
<span class="sep">/</span> |
| 18 |
Log |
| 19 |
</div> |
| 20 |
<div class="page-header"> |
| 21 |
<h1>Mod Log</h1> |
| 22 |
</div> |
| 23 |
|
| 24 |
{% if entries.is_empty() %} |
| 25 |
<div class="empty-state">No moderation actions recorded yet.</div> |
| 26 |
{% else %} |
| 27 |
<table class="data-table"> |
| 28 |
<thead> |
| 29 |
<tr> |
| 30 |
<th>Who</th> |
| 31 |
<th>Action</th> |
| 32 |
<th>Target</th> |
| 33 |
<th>Reason</th> |
| 34 |
<th class="col-activity">When</th> |
| 35 |
</tr> |
| 36 |
</thead> |
| 37 |
<tbody> |
| 38 |
{% for entry in entries %} |
| 39 |
<tr> |
| 40 |
<td class="settings-mono">{{ entry.actor }}</td> |
| 41 |
<td><span class="badge">{{ entry.action }}</span></td> |
| 42 |
<td class="settings-mono">{{ entry.target.as_deref().unwrap_or("-") }}</td> |
| 43 |
<td>{{ entry.reason.as_deref().unwrap_or("-") }}</td> |
| 44 |
<td class="col-activity settings-mono">{{ entry.timestamp }}</td> |
| 45 |
</tr> |
| 46 |
{% endfor %} |
| 47 |
</tbody> |
| 48 |
</table> |
| 49 |
|
| 50 |
{% if pagination.total_pages > 1 %} |
| 51 |
<div class="pagination"> |
| 52 |
{% if pagination.has_prev %} |
| 53 |
<a href="/p/{{ community_slug }}/moderation/log?page={{ pagination.current_page - 1 }}" class="pagination-link">Prev</a> |
| 54 |
{% endif %} |
| 55 |
<span class="pagination-info">{{ pagination.current_page }} / {{ pagination.total_pages }}</span> |
| 56 |
{% if pagination.has_next %} |
| 57 |
<a href="/p/{{ community_slug }}/moderation/log?page={{ pagination.current_page + 1 }}" class="pagination-link">Next</a> |
| 58 |
{% endif %} |
| 59 |
</div> |
| 60 |
{% endif %} |
| 61 |
{% endif %} |
| 62 |
</div> |
| 63 |
{% endblock %} |
| 64 |
|