comparison gpp/templates/forums/stranger.html @ 310:daa2916f5b34

Fixing 145; New url tag behavior (forwards compatibility) in Django 1.3.
author Brian Neal <bgneal@gmail.com>
date Thu, 20 Jan 2011 04:03:48 +0000
parents 8c1832b9d815
children 3c48a555298d
comparison
equal deleted inserted replaced
309:8a0bae48b6ca 310:daa2916f5b34
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %}
2 {% block title %}Promote Stranger: {{ post.user.username }}{% endblock %} 3 {% block title %}Promote Stranger: {{ post.user.username }}{% endblock %}
3 {% block content %} 4 {% block content %}
4 <h2>Promote Stranger: {{ post.user.username }}</h2> 5 <h2>Promote Stranger: {{ post.user.username }}</h2>
5 6
6 {% if can_moderate and can_promote %} 7 {% if can_moderate and can_promote %}
9 deactivate stranger accounts if the spam filter does not catch them. If you promote a stranger, 10 deactivate stranger accounts if the spam filter does not catch them. If you promote a stranger,
10 these checks (which are somewhat expensive for the webserver) will no longer be performed, 11 these checks (which are somewhat expensive for the webserver) will no longer be performed,
11 and moderators won't be able to deactivate them on the spot. You may wish to wait until the user 12 and moderators won't be able to deactivate them on the spot. You may wish to wait until the user
12 has posted at least 10 times before making your decision.</p> 13 has posted at least 10 times before making your decision.</p>
13 <p>Please confirm that you wish to promote the new user 14 <p>Please confirm that you wish to promote the new user
14 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from 15 <a href="{% url 'bio-view_profile' username=post.user.username %}">{{ post.user.username }}</a> from
15 <em>stranger</em> status based on <a href="{% url forums-goto_post post.id %}">this post</a>. 16 <em>stranger</em> status based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>.
16 </p> 17 </p>
17 <form action="." method="post">{% csrf_token %} 18 <form action="." method="post">{% csrf_token %}
18 <input type="submit" value="Yes, {{ post.user.username }} seems legit and is not a stranger" /> 19 <input type="submit" value="Yes, {{ post.user.username }} seems legit and is not a stranger" />
19 </form> 20 </form>
20 {% else %} 21 {% else %}
24 <p>Sorry, but you don't have permission to promote users in that post's forum.</p> 25 <p>Sorry, but you don't have permission to promote users in that post's forum.</p>
25 {% endif %} 26 {% endif %}
26 {% endif %} 27 {% endif %}
27 <hr /> 28 <hr />
28 <p> 29 <p>
29 <a href="{% url forums-goto_post post.id %}">Return to the post</a>. 30 <a href="{% url 'forums-goto_post' post.id %}">Return to the post</a>.
30 </p> 31 </p>
31 {% endblock %} 32 {% endblock %}