Add ability to create bans from reports
This is done in the admin view and opens a new iframed window. The ban form is pretty barebones and doesn't have full functionality yet, but that is coming. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -10,12 +10,18 @@ urlpatterns = [
|
||||
path("<slug:url>/", BoardView.as_view(), name="board_detail"),
|
||||
path("<slug:url>/page/<int:page>/", BoardView.as_view(), name="board_detail"),
|
||||
path("<slug:url>/post/<int:id>/", PostView.as_view(), name="post_detail"),
|
||||
path("<slug:url>/report/<int:id>/", ReportView.as_view(), name="report_form"),
|
||||
path("report/<slug:url>/<int:id>/", ReportView.as_view(), name="report_form"),
|
||||
path(
|
||||
"report/success/",
|
||||
TemplateView.as_view(template_name="board/report_success.html"),
|
||||
name="report_success",
|
||||
),
|
||||
path("ban/<slug:url>/<int:id>/", BanCreateView.as_view(), name="ban_create"),
|
||||
path(
|
||||
"ban/success/",
|
||||
BanSuccessView.as_view(),
|
||||
name="ban_success",
|
||||
),
|
||||
path(
|
||||
"banned",
|
||||
BannedView.as_view(),
|
||||
|
||||
Reference in New Issue
Block a user