Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
211:3a626c48e9ae | 212:fad7548b7f6e |
---|---|
1 {% extends 'base.html' %} | |
2 {% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %} | |
3 {% block content %} | |
4 <h2>Deactivate Spammer: {{ post.user.username }}</h2> | |
5 | |
6 {% if can_moderate %} | |
7 <p>Please confirm that you wish to mark the user | |
8 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> as a | |
9 spammer based on <a href="{% url forums-goto_post post.id %}">this post</a>. | |
10 If you confirm, the user's account will be deactivated, and all posts and comments | |
11 left by the user will be deleted.</p> | |
12 <p><strong>This is a drastic action, so please be absolutely sure | |
13 you wish to proceed!</strong></p> | |
14 <form action="." method="post">{% csrf_token %} | |
15 <input type="submit" value="Deactivate {{ post.user.username }}" /> | |
16 </form> | |
17 {% else %} | |
18 <p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p> | |
19 {% endif %} | |
20 <hr /> | |
21 <p> | |
22 <a href="{% url forums-goto_post post.id %}">Return to the post</a>. | |
23 </p> | |
24 {% endblock %} |