diff gpp/templates/forums/spammer.html @ 212:fad7548b7f6e

Fix #80: give moderators the ability to deactivate users for spam.
author Brian Neal <bgneal@gmail.com>
date Sun, 09 May 2010 20:53:34 +0000
parents
children 8c1832b9d815
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/forums/spammer.html	Sun May 09 20:53:34 2010 +0000
@@ -0,0 +1,24 @@
+{% extends 'base.html' %}
+{% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %}
+{% block content %}
+<h2>Deactivate Spammer: {{ post.user.username }}</h2>
+
+{% if can_moderate %}
+<p>Please confirm that you wish to mark the user
+<a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> as a
+spammer based on <a href="{% url forums-goto_post post.id %}">this post</a>. 
+If you confirm, the user's account will be deactivated, and all posts and comments
+left by the user will be deleted.</p>
+<p><strong>This is a drastic action, so please be absolutely sure
+you wish to proceed!</strong></p>
+<form action="." method="post">{% csrf_token %}
+   <input type="submit" value="Deactivate {{ post.user.username }}" />
+</form>
+{% else %}
+<p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p>
+{% endif %}
+<hr />
+<p>
+<a href="{% url forums-goto_post post.id %}">Return to the post</a>.
+</p>
+{% endblock %}