diff 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
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/gpp/templates/forums/post_ip.html	Sun May 30 20:51:41 2010 +0000
@@ -0,0 +1,19 @@
+{% extends 'base.html' %}
+{% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %}
+{% block content %}
+<h2>Post IP Address Info: {{ post.user_ip }}</h2>
+<p>
+This <a href="{{ post.get_absolute_url }}">post</a> was created by
+<a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from the IP address
+<a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>.
+</p>
+{% if ip_users %}
+<p>All users who have posted from {{ post.user_ip }}:</p>
+<ul>
+{% for user in ip_users %}
+<li><a href="{% url bio-view_profile username=user %}">{{ user }}</a>
+   (<a href="{% url forums-posts_for_user username=user %}">posts</a>)</li>
+{% endfor %}
+</ul>
+{% endif %}
+{% endblock %}