Mercurial > public > sg101
annotate gpp/templates/forums/spammer_nailed.html @ 515:ae89ba801e8b
For #194, convert the POTD management command to a celery task.
Refactored to put the logic for the command into a function, and the command simply calls this function. The task can also just call this function. Added some basic tests for the new function.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 14 Dec 2011 02:41:15 +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 %} |