diff gpp/templates/forums/display_post.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 8c1832b9d815
children 8fd4984d5c3b
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Sat May 29 04:51:28 2010 +0000
+++ b/gpp/templates/forums/display_post.html	Sun May 30 20:51:41 2010 +0000
@@ -27,7 +27,7 @@
       {% if post.unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New" title="New" />{% endif %}
       <a href="{{ post.get_absolute_url }}"><img src="{{ MEDIA_URL }}icons/link.png" alt="Link" title="Link to this post" /></a>
          Posted on {% forum_date post.creation_date user %}
-         {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %}
+         {% if can_moderate %}from IP: <a href="{% url forums-post_ip_info post.id %}">{{ post.user_ip }}</a>{% endif %}
       </div>
       <div class="forum-post-body">
          {{ post.html|safe }}