Mercurial > public > sg101
annotate gpp/templates/forums/spammer_nailed.html @ 492:3c48a555298d
Added a custom tag to display a link to a profile. Refactored the avatar tag to optionally display a profile link around the image. Removed the width and height attributes from the avatar image tag. I think this was causing disk hits whenever those properties were not cached. The avatar tag is now an inclusion tag.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sat, 22 Oct 2011 00:07:50 +0000 |
parents | daa2916f5b34 |
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 %} |