Mercurial > public > sg101
annotate gpp/templates/forums/post_ip.html @ 348:d1b11096595b
Fix #168; when nailing a spammer, clear their profile text fields. Guard against topics and forums that don't exist when deleting posts in the signal handler. Make the forum stats template tag only display the latest active users.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 02 Mar 2011 02:18:28 +0000 |
parents | daa2916f5b34 |
children | 3c48a555298d |
rev | line source |
---|---|
bgneal@216 | 1 {% extends 'base.html' %} |
bgneal@310 | 2 {% load url from future %} |
bgneal@216 | 3 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %} |
bgneal@216 | 4 {% block content %} |
bgneal@216 | 5 <h2>Post IP Address Info: {{ post.user_ip }}</h2> |
bgneal@216 | 6 <p> |
bgneal@216 | 7 This <a href="{{ post.get_absolute_url }}">post</a> was created by |
bgneal@310 | 8 <a href="{% url 'bio-view_profile' username=post.user.username %}">{{ post.user.username }}</a> from the IP address |
bgneal@216 | 9 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>. |
bgneal@216 | 10 </p> |
bgneal@216 | 11 {% if ip_users %} |
bgneal@216 | 12 <p>All users who have posted from {{ post.user_ip }}:</p> |
bgneal@216 | 13 <ul> |
bgneal@216 | 14 {% for user in ip_users %} |
bgneal@310 | 15 <li><a href="{% url 'bio-view_profile' username=user %}">{{ user }}</a> |
bgneal@310 | 16 (<a href="{% url 'forums-posts_for_user' username=user %}">posts</a>)</li> |
bgneal@216 | 17 {% endfor %} |
bgneal@216 | 18 </ul> |
bgneal@216 | 19 {% endif %} |
bgneal@216 | 20 {% endblock %} |