comparison gpp/templates/forums/stranger.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 %}Promote Stranger: {{ post.user.username }}{% endblock %} 4 {% block title %}Promote Stranger: {{ post.user.username }}{% endblock %}
4 {% block content %} 5 {% block content %}
5 <h2>Promote Stranger: {{ post.user.username }}</h2> 6 <h2>Promote Stranger: {{ post.user.username }}</h2>
6 7
7 {% if can_moderate and can_promote %} 8 {% if can_moderate and can_promote %}
10 deactivate stranger accounts if the spam filter does not catch them. If you promote a stranger, 11 deactivate stranger accounts if the spam filter does not catch them. If you promote a stranger,
11 these checks (which are somewhat expensive for the webserver) will no longer be performed, 12 these checks (which are somewhat expensive for the webserver) will no longer be performed,
12 and moderators won't be able to deactivate them on the spot. You may wish to wait until the user 13 and moderators won't be able to deactivate them on the spot. You may wish to wait until the user
13 has posted at least 10 times before making your decision.</p> 14 has posted at least 10 times before making your decision.</p>
14 <p>Please confirm that you wish to promote the new user 15 <p>Please confirm that you wish to promote the new user
15 <a href="{% url 'bio-view_profile' username=post.user.username %}">{{ post.user.username }}</a> from 16 {% profile_link post.user.username %} from
16 <em>stranger</em> status based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>. 17 <em>stranger</em> status based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>.
17 </p> 18 </p>
18 <form action="." method="post">{% csrf_token %} 19 <form action="." method="post">{% csrf_token %}
19 <input type="submit" value="Yes, {{ post.user.username }} seems legit and is not a stranger" /> 20 <input type="submit" value="Yes, {{ post.user.username }} seems legit and is not a stranger" />
20 </form> 21 </form>