feat: Add basic modqueue view
This commit is contained in:
parent
6da21a2786
commit
3faf7d58ac
@ -0,0 +1,10 @@
|
||||
{% extends "fellchensammlung/base_generic.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% translate "Modqueue" %}</h1>
|
||||
<p>{% translate "Erlaube oder blockiere Vermittlungsanzeigen die bisher noch zurückgehaltemn werden " %}</p>
|
||||
{% for report in reports %}
|
||||
{% include "fellchensammlung/partials/partial-report.html" %}
|
||||
{% endfor %}
|
||||
{% endblock %}
|
@ -27,6 +27,7 @@ urlpatterns = [
|
||||
path("melden/<int:adoption_notice_id>/", views.report_adoption, name="report-adoption-notice"),
|
||||
path("meldung/<uuid:report_id>/", views.report_detail, name="report-detail"),
|
||||
path("meldung/<uuid:report_id>/sucess", views.report_detail_success, name="report-detail-success"),
|
||||
path("modqueue/", views.modqueue, name="modqueue"),
|
||||
|
||||
###########
|
||||
## USERS ##
|
||||
|
@ -125,3 +125,9 @@ def member_detail(request, user):
|
||||
member = Member.objects.get(user=user)
|
||||
context = {"member": member}
|
||||
return render(request, 'fellchensammlung/details/detail-member.html', context=context)
|
||||
|
||||
|
||||
def modqueue(request):
|
||||
open_reports = Report.objects.filter(status=Report.WAITING)
|
||||
context = {"reports": open_reports}
|
||||
return render(request, 'fellchensammlung/modqueue.html', context=context)
|
||||
|
Loading…
Reference in New Issue
Block a user