annotate gpp/templates/forums/spammer_nailed.html @ 505:a5d11471d031

Refactor the logic in the rate limiter decorator. Check to see if the request was ajax, as the ajax view always returns 200. Have to decode the JSON response to see if an error occurred or not.
author Brian Neal <bgneal@gmail.com>
date Sat, 03 Dec 2011 19:13:38 +0000
parents 3c48a555298d
children
rev   line source
bgneal@212 1 {% extends 'base.html' %}
bgneal@310 2 {% load url from future %}
bgneal@492 3 {% load bio_tags %}
bgneal@212 4 {% block title %}Spammer Nailed: {{ spammer.username }}{% endblock %}
bgneal@212 5 {% block content %}
bgneal@212 6 <h2>Spammer Nailed: {{ spammer.username }}</h2>
bgneal@212 7 <p>
bgneal@212 8 {% if success %}
bgneal@492 9 The user {% profile_link spammer.username %}
bgneal@212 10 has had his/her account deactivated for spamming.
bgneal@212 11 All forum posts and comments this user has made have been deleted. The site admin has been
bgneal@212 12 notified of this action. Thanks for helping to keep our site spam-free!
bgneal@212 13 {% else %}
bgneal@212 14 Whoops, something went wrong deactivating the account of
bgneal@492 15 {% profile_link spammer.username '.' %}
bgneal@212 16 Or, possibly some time has passed and the account was reinstated. If you have any questions, contact
bgneal@212 17 the site admin.
bgneal@212 18 {% endif %}
bgneal@212 19 </p>
bgneal@212 20 {% endblock %}