2021-03-08 23:49:44 +00:00
|
|
|
{% extends 'components/card.html' %}
|
|
|
|
{% load i18n %}
|
2021-03-09 20:35:07 +00:00
|
|
|
{% load humanize %}
|
2022-01-10 22:55:10 +00:00
|
|
|
{% load utilities %}
|
|
|
|
|
2021-03-08 23:49:44 +00:00
|
|
|
{% block card-header %}
|
2022-02-20 00:34:17 +00:00
|
|
|
<h2 class="card-header-title has-background-secondary is-block">
|
2022-01-10 22:55:10 +00:00
|
|
|
<a href="{% url 'settings-report' report.id %}">
|
|
|
|
{% include "settings/reports/report_header.html" with report=report %}
|
|
|
|
</a>
|
2021-03-09 18:08:02 +00:00
|
|
|
</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>
|
2021-03-09 18:08:02 +00:00
|
|
|
</div>
|
2021-03-08 23:49:44 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block card-footer %}
|
2021-03-09 18:08:02 +00:00
|
|
|
<div class="card-footer-item">
|
2022-01-10 22:55:10 +00:00
|
|
|
<p>{% blocktrans with username=report.reporter|username path=report.reporter.local_path %}Reported by <a href="{{ path }}">@{{ username }}</a>{% endblocktrans %}</p>
|
2021-03-09 20:35:07 +00:00
|
|
|
</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>
|
2021-03-09 18:08:02 +00:00
|
|
|
</div>
|
2021-03-09 02:36:34 +00:00
|
|
|
{% endblock %}
|