2021-09-08 21:32:11 +00:00
|
|
|
{% extends 'settings/layout.html' %}
|
2021-03-09 02:36:34 +00:00
|
|
|
{% load i18n %}
|
2021-03-12 23:56:54 +00:00
|
|
|
{% load humanize %}
|
2021-03-09 20:35:07 +00:00
|
|
|
|
2021-03-13 00:20:10 +00:00
|
|
|
{% block title %}{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}{% endblock %}
|
2021-09-28 20:34:14 +00:00
|
|
|
|
|
|
|
{% block header %}
|
|
|
|
{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}
|
|
|
|
<a href="{% url 'settings-reports' %}" class="has-text-weight-normal help">{% trans "Back to reports" %}</a>
|
|
|
|
{% endblock %}
|
2021-03-09 20:35:07 +00:00
|
|
|
|
|
|
|
{% block panel %}
|
|
|
|
|
|
|
|
<div class="block">
|
2021-09-28 19:41:07 +00:00
|
|
|
{% include 'settings/reports/report_preview.html' with report=report %}
|
2021-03-09 20:35:07 +00:00
|
|
|
</div>
|
|
|
|
|
2021-09-28 20:32:23 +00:00
|
|
|
{% include 'settings/users/user_info.html' with user=report.user %}
|
2021-04-17 17:12:50 +00:00
|
|
|
|
2021-09-28 20:32:23 +00:00
|
|
|
{% include 'settings/users/user_moderation_actions.html' with user=report.user %}
|
2021-03-09 20:35:07 +00:00
|
|
|
|
2021-03-12 23:56:54 +00:00
|
|
|
<div class="block">
|
|
|
|
<h3 class="title is-4">{% trans "Moderator Comments" %}</h3>
|
2021-03-09 20:35:07 +00:00
|
|
|
{% for comment in report.reportcomment_set.all %}
|
2021-03-12 23:56:54 +00:00
|
|
|
<div class="card block">
|
|
|
|
<p class="card-content">{{ comment.note }}</p>
|
|
|
|
<div class="card-footer">
|
|
|
|
<div class="card-footer-item">
|
|
|
|
<a href="{{ comment.user.local_path }}">{{ comment.user.display_name }}</a>
|
|
|
|
</div>
|
|
|
|
<div class="card-footer-item">
|
2021-05-11 22:14:42 +00:00
|
|
|
{{ comment.created_date|naturaltime }}
|
2021-03-12 23:56:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
2021-03-09 20:35:07 +00:00
|
|
|
</div>
|
|
|
|
{% endfor %}
|
2021-03-12 23:56:54 +00:00
|
|
|
<form class="block" name="report-comment" method="post" action="{% url 'settings-report' report.id %}">
|
|
|
|
{% csrf_token %}
|
2021-03-09 20:35:07 +00:00
|
|
|
<label for="report_comment" class="label">Comment on report</label>
|
2021-03-12 23:56:54 +00:00
|
|
|
<textarea name="note" id="report_comment" class="textarea"></textarea>
|
2021-03-09 20:35:07 +00:00
|
|
|
<button class="button">{% trans "Comment" %}</button>
|
2021-03-12 23:56:54 +00:00
|
|
|
</form>
|
2021-03-09 20:35:07 +00:00
|
|
|
</div>
|
|
|
|
|
2021-03-12 01:38:21 +00:00
|
|
|
<div class="block">
|
|
|
|
<h3 class="title is-4">{% trans "Reported statuses" %}</h3>
|
2021-03-13 00:20:10 +00:00
|
|
|
{% if not report.statuses.exists %}
|
|
|
|
<em>{% trans "No statuses reported" %}</em>
|
|
|
|
{% else %}
|
2021-03-09 20:35:07 +00:00
|
|
|
<ul>
|
2021-03-12 01:38:21 +00:00
|
|
|
{% for status in report.statuses.select_subclasses.all %}
|
|
|
|
<li>
|
2021-03-12 19:25:56 +00:00
|
|
|
{% if status.deleted %}
|
2021-04-20 23:22:24 +00:00
|
|
|
<em>{% trans "Status has been deleted" %}</em>
|
2021-03-12 19:25:56 +00:00
|
|
|
{% else %}
|
2021-03-12 01:38:21 +00:00
|
|
|
{% include 'snippets/status/status.html' with status=status moderation_mode=True %}
|
2021-03-12 19:25:56 +00:00
|
|
|
{% endif %}
|
2021-03-12 01:38:21 +00:00
|
|
|
</li>
|
2021-03-09 20:35:07 +00:00
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2021-03-13 00:20:10 +00:00
|
|
|
{% endif %}
|
2021-03-09 20:35:07 +00:00
|
|
|
</div>
|
|
|
|
{% endblock %}
|