{% extends 'settings/admin_layout.html' %} {% load i18n %} {% load bookwyrm_tags %} {% load humanize %} {% block title %}{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}{% endblock %} {% block header %}{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}{% endblock %} {% block panel %}
{% trans "Back to reports" %}
{% include 'moderation/report_preview.html' with report=report %}

{% trans "User details" %}

{% include 'user/user_preview.html' with user=report.user %} {% if report.user.summary %}
{{ report.user.summary | to_markdown | safe }}
{% endif %}

{% trans "View user profile" %}

{% if not report.user.local %} {% with server=report.user.federated_server %}

{% trans "Instance details" %}

{% if server %}
{{ server.server_name }}
{% trans "Software:" %}
{{ server.application_type }}
{% trans "Version:" %}
{{ server.application_version }}
{% trans "Status:" %}
{{ server.status }}
{% if server.notes %}
{% trans "Notes" %}
{{ server.notes }}
{% endif %}

{% trans "View instance" %}

{% else %} {% trans "Not set" %} {% endif %}
{% endwith %} {% endif %}

{% trans "Actions" %}

{% trans "Send direct message" %}

{% csrf_token %} {% if report.user.is_active %} {% else %} {% endif %}

{% trans "Moderator Comments" %}

{% for comment in report.reportcomment_set.all %}

{{ comment.note }}

{% endfor %}
{% csrf_token %}

{% trans "Reported statuses" %}

{% if not report.statuses.exists %} {% trans "No statuses reported" %} {% else %} {% endif %}
{% endblock %}