Moves moderation templates to their own directory

This commit is contained in:
Mouse Reeve 2021-03-10 12:38:49 -08:00
parent 0d2c641d01
commit 7f45206693
5 changed files with 5 additions and 4 deletions

View file

@ -10,7 +10,7 @@
</div>
<div class="block">
{% include 'settings/report_preview.html' with report=report %}
{% include 'moderation/report_preview.html' with report=report %}
</div>
<div class="block content">

View file

@ -19,7 +19,7 @@
<div class="block">
{% for report in reports %}
<div class="block">
{% include 'settings/report_preview.html' with report=report %}
{% include 'moderation/report_preview.html' with report=report %}
</div>
{% endfor %}
</div>

View file

@ -3,5 +3,6 @@
{% csrf_token %}
<input type="hidden" name="reporter" value="{{ request.user.id }}">
<input type="hidden" name="user" value="{{ user.id }}">
<input type="hidden" name="statuses" value="{{ user.id }}">
<button class="button is-danger is-light is-small {{ class }}" type="submit">{% trans "Report" %}</button>
</form>

View file

@ -29,7 +29,7 @@ class Reports(View):
"resolved": resolved,
"reports": models.Report.objects.filter(resolved=resolved),
}
return TemplateResponse(request, "settings/reports.html", data)
return TemplateResponse(request, "moderation/reports.html", data)
@method_decorator(login_required, name="dispatch")
@ -47,7 +47,7 @@ class Report(View):
def get(self, request, report_id):
""" load a report """
data = {"report": get_object_or_404(models.Report, id=report_id)}
return TemplateResponse(request, "settings/report.html", data)
return TemplateResponse(request, "moderation/report.html", data)
@login_required