comparison gpp/templates/forums/spammer.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 %}Deactivate Spammer: {{ post.user.username }}{% endblock %} 4 {% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %}
4 {% block content %} 5 {% block content %}
5 <h2>Deactivate Spammer: {{ post.user.username }}</h2> 6 <h2>Deactivate Spammer: {{ post.user.username }}</h2>
6 7
7 {% if can_moderate and can_deactivate %} 8 {% if can_moderate and can_deactivate %}
8 <p>Please confirm that you wish to mark the user 9 <p>Please confirm that you wish to mark the user
9 <a href="{% url 'bio-view_profile' username=post.user.username %}">{{ post.user.username }}</a> as a 10 {% profile_link post.user.username %} as a
10 spammer based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>. 11 spammer based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>.
11 If you confirm, the user's account will be deactivated, and all posts and comments 12 If you confirm, the user's account will be deactivated, and all posts and comments
12 left by the user will be deleted.</p> 13 left by the user will be deleted.</p>
13 <p><strong>This is a drastic action, so please be absolutely sure 14 <p><strong>This is a drastic action, so please be absolutely sure
14 you wish to proceed!</strong></p> 15 you wish to proceed!</strong></p>