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 %}
|
2021-03-09 18:08:02 +00:00
|
|
|
<h2 class="card-header-title has-background-white-ter is-block">
|
2021-03-13 00:20:10 +00:00
|
|
|
<a href="{% url 'settings-report' report.id %}">{% blocktrans with report_id=report.id username=report.user.username %}Report #{{ report_id }}: {{ username }}{% endblocktrans %}</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">
|
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>
|
2021-03-09 18:08:02 +00:00
|
|
|
</div>
|
2021-03-09 02:36:34 +00:00
|
|
|
{% endblock %}
|