bgneal@212: {% extends 'base.html' %} bgneal@310: {% load url from future %} bgneal@492: {% load bio_tags %} bgneal@212: {% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %} bgneal@212: {% block content %} bgneal@212: <h2>Deactivate Spammer: {{ post.user.username }}</h2> bgneal@212: bgneal@215: {% if can_moderate and can_deactivate %} bgneal@212: <p>Please confirm that you wish to mark the user bgneal@492: {% profile_link post.user.username %} as a bgneal@310: spammer based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>. bgneal@212: If you confirm, the user's account will be deactivated, and all posts and comments bgneal@212: left by the user will be deleted.</p> bgneal@212: <p><strong>This is a drastic action, so please be absolutely sure bgneal@212: you wish to proceed!</strong></p> bgneal@212: <form action="." method="post">{% csrf_token %} bgneal@212: <input type="submit" value="Deactivate {{ post.user.username }}" /> bgneal@212: </form> bgneal@212: {% else %} bgneal@215: {% if can_moderate %} bgneal@215: <p>That user is no longer a stranger, and can't be deactivated like this. Please bgneal@215: contact the site admin if that user is now posting spam.</p> bgneal@215: {% else %} bgneal@215: <p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p> bgneal@215: {% endif %} bgneal@212: {% endif %} bgneal@212: <hr /> bgneal@212: <p> bgneal@310: <a href="{% url 'forums-goto_post' post.id %}">Return to the post</a>. bgneal@212: </p> bgneal@212: {% endblock %}