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