moviewyrm/bookwyrm/templates/moderation/report_preview.html

38 lines
1.3 KiB
HTML
Raw Normal View History

2021-03-08 23:49:44 +00:00
{% extends 'components/card.html' %}
{% load i18n %}
2021-03-09 20:35:07 +00:00
{% load humanize %}
2021-03-08 23:49:44 +00:00
{% block card-header %}
<h2 class="card-header-title has-background-white-ter is-block">
<a href="{% url 'settings-report' report.id %}">{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}</a>
</h2>
2021-03-08 23:49:44 +00:00
{% endblock %}
{% block card-content %}
2021-03-12 19:13:53 +00:00
<div class="block content">
<p>
{% if report.note %}{{ report.note }}{% else %}<em>{% trans "No notes provided" %}</em>{% endif %}
</p>
</div>
2021-03-08 23:49:44 +00:00
{% endblock %}
{% block card-footer %}
<div class="card-footer-item">
2021-03-09 20:35:07 +00:00
<p>{% blocktrans with username=report.reporter.display_name path=report.reporter.local_path %}Reported by <a href="{{ path }}">{{ username }}</a>{% endblocktrans %}</p>
</div>
<div class="card-footer-item">
{{ report.created_date | naturaltime }}
</div>
<div class="card-footer-item">
2021-03-12 18:22:03 +00:00
<form name="resolve" method="post" action="{% url 'settings-report-resolve' report.id %}">
{% csrf_token %}
<button class="button" type="submit">
{% if report.resolved %}
{% trans "Re-open" %}
{% else %}
{% trans "Resolve" %}
{% endif %}
</button>
</form>
</div>
2021-03-09 02:36:34 +00:00
{% endblock %}