Mercurial > public > sg101
comparison gpp/templates/forums/spammer.html @ 215:8c1832b9d815
Implement #84; additional checks on spammers; implement stranger status.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 29 May 2010 04:51:28 +0000 |
parents | fad7548b7f6e |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
214:28988cce138b | 215:8c1832b9d815 |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %} | 2 {% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %} |
3 {% block content %} | 3 {% block content %} |
4 <h2>Deactivate Spammer: {{ post.user.username }}</h2> | 4 <h2>Deactivate Spammer: {{ post.user.username }}</h2> |
5 | 5 |
6 {% if can_moderate %} | 6 {% if can_moderate and can_deactivate %} |
7 <p>Please confirm that you wish to mark the user | 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 | 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>. | 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 | 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> | 11 left by the user will be deleted.</p> |
13 you wish to proceed!</strong></p> | 13 you wish to proceed!</strong></p> |
14 <form action="." method="post">{% csrf_token %} | 14 <form action="." method="post">{% csrf_token %} |
15 <input type="submit" value="Deactivate {{ post.user.username }}" /> | 15 <input type="submit" value="Deactivate {{ post.user.username }}" /> |
16 </form> | 16 </form> |
17 {% else %} | 17 {% else %} |
18 <p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p> | 18 {% if can_moderate %} |
19 <p>That user is no longer a stranger, and can't be deactivated like this. Please | |
20 contact the site admin if that user is now posting spam.</p> | |
21 {% else %} | |
22 <p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p> | |
23 {% endif %} | |
19 {% endif %} | 24 {% endif %} |
20 <hr /> | 25 <hr /> |
21 <p> | 26 <p> |
22 <a href="{% url forums-goto_post post.id %}">Return to the post</a>. | 27 <a href="{% url forums-goto_post post.id %}">Return to the post</a>. |
23 </p> | 28 </p> |