annotate gpp/templates/forums/post_ip.html @ 283:593fb6dbd449

Fixing #125. Developed a forums navigation template tag to consistently display forum navigation.
author Brian Neal <bgneal@gmail.com>
date Mon, 04 Oct 2010 00:57:58 +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 %}