annotate 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 |
|
rev |
line source |
bgneal@215
|
1 {% extends 'base.html' %}
|
bgneal@310
|
2 {% load url from future %}
|
bgneal@492
|
3 {% load bio_tags %}
|
bgneal@215
|
4 {% block title %}Promote Stranger: {{ post.user.username }}{% endblock %}
|
bgneal@215
|
5 {% block content %}
|
bgneal@215
|
6 <h2>Promote Stranger: {{ post.user.username }}</h2>
|
bgneal@215
|
7
|
bgneal@215
|
8 {% if can_moderate and can_promote %}
|
bgneal@215
|
9 <p>All new users are considered "<em>strangers</em>" until approved by a moderator.
|
bgneal@215
|
10 Strangers have their posts automatically scanned for spam phrases. Moderators can also instantly
|
bgneal@215
|
11 deactivate stranger accounts if the spam filter does not catch them. If you promote a stranger,
|
bgneal@215
|
12 these checks (which are somewhat expensive for the webserver) will no longer be performed,
|
bgneal@215
|
13 and moderators won't be able to deactivate them on the spot. You may wish to wait until the user
|
bgneal@215
|
14 has posted at least 10 times before making your decision.</p>
|
bgneal@215
|
15 <p>Please confirm that you wish to promote the new user
|
bgneal@492
|
16 {% profile_link post.user.username %} from
|
bgneal@310
|
17 <em>stranger</em> status based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>.
|
bgneal@215
|
18 </p>
|
bgneal@215
|
19 <form action="." method="post">{% csrf_token %}
|
bgneal@215
|
20 <input type="submit" value="Yes, {{ post.user.username }} seems legit and is not a stranger" />
|
bgneal@215
|
21 </form>
|
bgneal@215
|
22 {% else %}
|
bgneal@215
|
23 {% if can_moderate %}
|
bgneal@215
|
24 <p>That user is no longer a stranger, and can't be promoted again.</p>
|
bgneal@215
|
25 {% else %}
|
bgneal@215
|
26 <p>Sorry, but you don't have permission to promote users in that post's forum.</p>
|
bgneal@215
|
27 {% endif %}
|
bgneal@215
|
28 {% endif %}
|
bgneal@215
|
29 <hr />
|
bgneal@215
|
30 <p>
|
bgneal@310
|
31 <a href="{% url 'forums-goto_post' post.id %}">Return to the post</a>.
|
bgneal@215
|
32 </p>
|
bgneal@215
|
33 {% endblock %}
|