Mercurial > public > sg101
comparison gpp/templates/forums/post_ip.html @ 216:fe900598f81c
Implement #85 - display who has posted from a post's IP address.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 30 May 2010 20:51:41 +0000 |
parents | |
children | daa2916f5b34 |
comparison
equal
deleted
inserted
replaced
215:8c1832b9d815 | 216:fe900598f81c |
---|---|
1 {% extends 'base.html' %} | |
2 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %} | |
3 {% block content %} | |
4 <h2>Post IP Address Info: {{ post.user_ip }}</h2> | |
5 <p> | |
6 This <a href="{{ post.get_absolute_url }}">post</a> was created by | |
7 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from the IP address | |
8 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>. | |
9 </p> | |
10 {% if ip_users %} | |
11 <p>All users who have posted from {{ post.user_ip }}:</p> | |
12 <ul> | |
13 {% for user in ip_users %} | |
14 <li><a href="{% url bio-view_profile username=user %}">{{ user }}</a> | |
15 (<a href="{% url forums-posts_for_user username=user %}">posts</a>)</li> | |
16 {% endfor %} | |
17 </ul> | |
18 {% endif %} | |
19 {% endblock %} |