2024-07-07 15:01:52 +08:00
|
|
|
{% if theme() and file_exists('app/templates/themes/' + theme() + '/base.html') %}
|
|
|
|
{% extends 'themes/' + theme() + '/base.html' %}
|
|
|
|
{% else %}
|
|
|
|
{% extends "base.html" %}
|
2024-12-10 12:16:52 +01:00
|
|
|
{% endif %}
|
2024-07-07 15:01:52 +08:00
|
|
|
{% from 'bootstrap/form.html' import render_field %}
|
|
|
|
|
|
|
|
{% block app_content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-8 position-relative main_pane">
|
|
|
|
<nav aria-label="breadcrumb" id="breadcrumb_nav" title="Navigation">
|
|
|
|
<ol class="breadcrumb">
|
|
|
|
<li class="breadcrumb-item"><a href="/">{{ _('Home') }}</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ url_for('activitypub.community_profile', actor=community.ap_id if community.ap_id is not none else community.name) }}">{{ (community.title + '@' + community.ap_domain)|shorten }}</a></li>
|
|
|
|
<li class="breadcrumb-item"><a href="{{ url_for('community.community_edit', community_id=community.id) }}">{{ _('Settings') }}</a></li>
|
|
|
|
<li class="breadcrumb-item active">{{ _('Modlog') }}</li>
|
|
|
|
</ol>
|
|
|
|
</nav>
|
|
|
|
{% include "community/_community_moderation_nav.html" %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-12 col-md-10">
|
|
|
|
<h1 class="mt-2">{{ _('Moderation actions in %(community)s', community=community.display_name()) }}</h1>
|
|
|
|
</div>
|
|
|
|
<p>{{ _('See things moderators have done in this community.') }}</p>
|
|
|
|
</div>
|
|
|
|
{% if modlog_entries.items %}
|
|
|
|
<table class="table table-responsive">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>{{ _('When') }}</th>
|
|
|
|
<th>{{ _('Moderator') }}</th>
|
|
|
|
<th>{{ _('Action') }}</th>
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for modlog_entry in modlog_entries.items %}
|
|
|
|
<tr>
|
2024-08-23 11:14:47 +12:00
|
|
|
<td>{{ arrow.get(modlog_entry.created_at).humanize(locale=locale) }}</td>
|
2024-07-07 15:01:52 +08:00
|
|
|
<td>{{ render_username(modlog_entry.author) }}</td>
|
|
|
|
<td>{{ modlog_entry.action_to_str() }}
|
|
|
|
{% if modlog_entry.link and modlog_entry.link_text -%}
|
|
|
|
<a href="/{{ modlog_entry.link }}">{{ modlog_entry.link_text}}</a>
|
|
|
|
{% elif modlog_entry.link_text -%}
|
|
|
|
{{ modlog_entry.link_text }}
|
|
|
|
{% endif -%}
|
|
|
|
{% if modlog_entry.reason -%}
|
|
|
|
<br>{{ _('Reason:') }} {{ modlog_entry.reason }}
|
|
|
|
{% endif -%}
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
{% else -%}
|
|
|
|
<p>{{ _('This community has had no moderation actions yet.') }}</p>
|
|
|
|
{% endif -%}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|