annotate gpp/templates/forums/post_ip.html @ 260:3a4bbf9c2cce

Fixing #107. Apparently some signal handlers were getting connected twice (double import?) and thus saving a forum post would cause 2 email notifications to go out to the post topic's subscribers. Use the dispatch_uid parameter in the connect call to work around this issue.
author Brian Neal <bgneal@gmail.com>
date Wed, 22 Sep 2010 00:24:59 +0000
parents fe900598f81c
children daa2916f5b34
rev   line source
bgneal@216 1 {% extends 'base.html' %}
bgneal@216 2 {% block title %}Post IP Address Info: {{ post.user_ip }}{% endblock %}
bgneal@216 3 {% block content %}
bgneal@216 4 <h2>Post IP Address Info: {{ post.user_ip }}</h2>
bgneal@216 5 <p>
bgneal@216 6 This <a href="{{ post.get_absolute_url }}">post</a> was created by
bgneal@216 7 <a href="{% url bio-view_profile username=post.user.username %}">{{ post.user.username }}</a> from the IP address
bgneal@216 8 <a href="http://www.dnsstuff.com/tools/whois/?ip={{ post.user_ip }}">{{ post.user_ip }}</a>.
bgneal@216 9 </p>
bgneal@216 10 {% if ip_users %}
bgneal@216 11 <p>All users who have posted from {{ post.user_ip }}:</p>
bgneal@216 12 <ul>
bgneal@216 13 {% for user in ip_users %}
bgneal@216 14 <li><a href="{% url bio-view_profile username=user %}">{{ user }}</a>
bgneal@216 15 (<a href="{% url forums-posts_for_user username=user %}">posts</a>)</li>
bgneal@216 16 {% endfor %}
bgneal@216 17 </ul>
bgneal@216 18 {% endif %}
bgneal@216 19 {% endblock %}