freak/freak/templates/admin/admin_report_detail.html

34 lines
1.3 KiB
HTML

{% extends "admin/admin_base.html" %}
{% from "macros/embed.html" import embed_post with context %}
{% from "macros/icon.html" import icon, callout with context %}
{% block content %}
<h2>Report detail #{{ report.id }}</h2>
<ul>
<li>Reason: <strong>{{ report_reasons[report.reason_code] }}</strong></li>
<li>Status: <strong>{{ ['Unreviewed', 'Complete', 'Rejected', 'On hold'][report.update_status] }}</strong></li>
</ul>
<h3>Detail</h3>
{% if report.target_type in (1, 2) %}
{{ embed_post(report.target()) }}
{% else %}
<p><i>Unknown media type</i></p>
{% endif %}
{% if report.is_critical() %}
{% call callout('nsfw_language') %}
This is a critical offense. “Strike” will immediately suspend the offender's account.
{% endcall %}
{% endif %}
<form method="POST">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<button type="submit" name="do" value="0">Reject</button>
{% if report.is_critical() %}
<button type="submit" name="do" value="2" class="primary">Strike</button>
{% else %}
<button type="submit" name="do" value="1" class="primary">Remove</button>
<button type="submit" name="do" value="2">Strike</button>
{% endif %}
<button type="submit" name="do" value="2">Put on hold</button>
</form>
{% endblock %}