Add user post wiping
If a user has spammed a lot of posts and made a mess of the board, this will allow us to delete all posts by the offending user from the same IP. Signed-off-by: Alek Ratzloff <alekratz@gmail.com>
This commit is contained in:
@@ -8,6 +8,7 @@
|
||||
{% if user.is_staff %}
|
||||
data-ban-url="{% url 'board:ban_create' board.url post.id %}"
|
||||
data-modify-url="{% url 'board:post_modify' post.id %}"
|
||||
data-wipe-url="{% url 'board:post_wipe' post.id %}"
|
||||
{% endif %}
|
||||
>
|
||||
|
||||
|
||||
10
board/templates/board/post_wipe.html
Normal file
10
board/templates/board/post_wipe.html
Normal file
@@ -0,0 +1,10 @@
|
||||
{% extends "board/base.html" %}
|
||||
{% load i18n %}
|
||||
|
||||
{% block content %}
|
||||
{% blocktranslate %}This will delete {{all_posts_count}} posts.{% endblocktranslate %}
|
||||
<form method="post" {# action="{% url 'board:post_wipe_success' %}" #}>
|
||||
{% csrf_token %}
|
||||
<input type="submit" value="Wipe all posts by this user" />
|
||||
</form>
|
||||
{% endblock content %}
|
||||
Reference in New Issue
Block a user