view gpp/templates/forums/post_ip.html @ 517:666147a2cc08

Moved the imports from the top of the file into the task function. This seemed to prevent some strange import errors that only occurred on the production server. I don't know if the problems were related to mod_wsgi or Python 2.5 or what.
author Brian Neal <bgneal@gmail.com>
date Thu, 15 Dec 2011 02:49:16 +0000
parents 3c48a555298d
children
line wrap: on
line source
{% extends 'base.html' %}
{% load url from future %}
{% load bio_tags %}
{% 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
{% profile_link post.user.username %} 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>{% profile_link user %} (<a href="{% url 'forums-posts_for_user' username=user %}">posts</a>)</li>
{% endfor %}
</ul>
{% endif %}
{% endblock %}