Mercurial > public > sg101
comparison gpp/templates/forums/spammer.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 %}Deactivate Spammer: {{ post.user.username }}{% endblock %} | 3 {% block title %}Deactivate Spammer: {{ post.user.username }}{% endblock %} |
3 {% block content %} | 4 {% block content %} |
4 <h2>Deactivate Spammer: {{ post.user.username }}</h2> | 5 <h2>Deactivate Spammer: {{ post.user.username }}</h2> |
5 | 6 |
6 {% if can_moderate and can_deactivate %} | 7 {% if can_moderate and can_deactivate %} |
7 <p>Please confirm that you wish to mark the user | 8 <p>Please confirm that you wish to mark the user |
8 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> as a | 9 <a href="{% url 'bio-view_profile' username=post.user.username %}">{{ post.user.username }}</a> as a |
9 spammer based on <a href="{% url forums-goto_post post.id %}">this post</a>. | 10 spammer based on <a href="{% url 'forums-goto_post' post.id %}">this post</a>. |
10 If you confirm, the user's account will be deactivated, and all posts and comments | 11 If you confirm, the user's account will be deactivated, and all posts and comments |
11 left by the user will be deleted.</p> | 12 left by the user will be deleted.</p> |
12 <p><strong>This is a drastic action, so please be absolutely sure | 13 <p><strong>This is a drastic action, so please be absolutely sure |
13 you wish to proceed!</strong></p> | 14 you wish to proceed!</strong></p> |
14 <form action="." method="post">{% csrf_token %} | 15 <form action="." method="post">{% csrf_token %} |
22 <p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p> | 23 <p>Sorry, but you don't have permission to deactivate spammers in that post's forum.</p> |
23 {% endif %} | 24 {% endif %} |
24 {% endif %} | 25 {% endif %} |
25 <hr /> | 26 <hr /> |
26 <p> | 27 <p> |
27 <a href="{% url forums-goto_post post.id %}">Return to the post</a>. | 28 <a href="{% url 'forums-goto_post' post.id %}">Return to the post</a>. |
28 </p> | 29 </p> |
29 {% endblock %} | 30 {% endblock %} |