annotate gpp/templates/forums/spammer_nailed.html @ 348:d1b11096595b

Fix #168; when nailing a spammer, clear their profile text fields. Guard against topics and forums that don't exist when deleting posts in the signal handler. Make the forum stats template tag only display the latest active users.
author Brian Neal <bgneal@gmail.com>
date Wed, 02 Mar 2011 02:18:28 +0000
parents daa2916f5b34
children 3c48a555298d
rev   line source
bgneal@212 1 {% extends 'base.html' %}
bgneal@310 2 {% load url from future %}
bgneal@212 3 {% block title %}Spammer Nailed: {{ spammer.username }}{% endblock %}
bgneal@212 4 {% block content %}
bgneal@212 5 <h2>Spammer Nailed: {{ spammer.username }}</h2>
bgneal@212 6 <p>
bgneal@212 7 {% if success %}
bgneal@310 8 The user <a href="{% url 'bio-view_profile' username=spammer.username %}">{{ spammer.username }}</a>
bgneal@212 9 has had his/her account deactivated for spamming.
bgneal@212 10 All forum posts and comments this user has made have been deleted. The site admin has been
bgneal@212 11 notified of this action. Thanks for helping to keep our site spam-free!
bgneal@212 12 {% else %}
bgneal@212 13 Whoops, something went wrong deactivating the account of
bgneal@310 14 <a href="{% url 'bio-view_profile' username=spammer.username %}">{{ spammer.username }}</a>.
bgneal@212 15 Or, possibly some time has passed and the account was reinstated. If you have any questions, contact
bgneal@212 16 the site admin.
bgneal@212 17 {% endif %}
bgneal@212 18 </p>
bgneal@212 19 {% endblock %}