Moves moderation templates to their own directory
This commit is contained in:
26
bookwyrm/templates/moderation/report_preview.html
Normal file
26
bookwyrm/templates/moderation/report_preview.html
Normal file
@ -0,0 +1,26 @@
|
||||
{% extends 'components/card.html' %}
|
||||
{% load i18n %}
|
||||
{% load humanize %}
|
||||
{% block card-header %}
|
||||
<h2 class="card-header-title has-background-white-ter is-block">
|
||||
<a href="{% url 'settings-report' report.id %}">{{ report.user.username }}</a>
|
||||
</h2>
|
||||
{% endblock %}
|
||||
|
||||
{% block card-content %}
|
||||
<div class="block">
|
||||
{% if report.notes %}{{ report.notes }}{% else %}<em>{% trans "No notes provided" %}</em>{% endif %}
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
{% block card-footer %}
|
||||
<div class="card-footer-item">
|
||||
<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">
|
||||
<button class="button">{% trans "Mark as resolved" %}</button>
|
||||
</div>
|
||||
{% endblock %}
|
Reference in New Issue
Block a user