moviewyrm/bookwyrm/templates/settings/reports/report_preview.html

42 lines
1.2 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 %}
2022-01-10 22:55:10 +00:00
{% load utilities %}
2021-03-08 23:49:44 +00:00
{% block card-header %}
<h2 class="card-header-title has-background-white-ter 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>
</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">
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>
</div>
2021-03-09 02:36:34 +00:00
{% endblock %}