Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
491:7dbdbb08e68c | 492:3c48a555298d |
---|---|
1 {% extends 'base.html' %} | 1 {% extends 'base.html' %} |
2 {% load url from future %} | 2 {% load url from future %} |
3 {% load bio_tags %} | |
3 {% block title %}Spammer Nailed: {{ spammer.username }}{% endblock %} | 4 {% block title %}Spammer Nailed: {{ spammer.username }}{% endblock %} |
4 {% block content %} | 5 {% block content %} |
5 <h2>Spammer Nailed: {{ spammer.username }}</h2> | 6 <h2>Spammer Nailed: {{ spammer.username }}</h2> |
6 <p> | 7 <p> |
7 {% if success %} | 8 {% if success %} |
8 The user <a href="{% url 'bio-view_profile' username=spammer.username %}">{{ spammer.username }}</a> | 9 The user {% profile_link spammer.username %} |
9 has had his/her account deactivated for spamming. | 10 has had his/her account deactivated for spamming. |
10 All forum posts and comments this user has made have been deleted. The site admin has been | 11 All forum posts and comments this user has made have been deleted. The site admin has been |
11 notified of this action. Thanks for helping to keep our site spam-free! | 12 notified of this action. Thanks for helping to keep our site spam-free! |
12 {% else %} | 13 {% else %} |
13 Whoops, something went wrong deactivating the account of | 14 Whoops, something went wrong deactivating the account of |
14 <a href="{% url 'bio-view_profile' username=spammer.username %}">{{ spammer.username }}</a>. | 15 {% profile_link spammer.username '.' %} |
15 Or, possibly some time has passed and the account was reinstated. If you have any questions, contact | 16 Or, possibly some time has passed and the account was reinstated. If you have any questions, contact |
16 the site admin. | 17 the site admin. |
17 {% endif %} | 18 {% endif %} |
18 </p> | 19 </p> |
19 {% endblock %} | 20 {% endblock %} |