diff gpp/templates/forums/display_post.html @ 114:535d02d1c017

Forums: Implemented unread status for topics and posts.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 20:27:07 +0000
parents d97ceb95ce02
children 0ce0104c7df3
line wrap: on
line diff
--- a/gpp/templates/forums/display_post.html	Sun Oct 11 19:10:54 2009 +0000
+++ b/gpp/templates/forums/display_post.html	Sun Oct 11 20:27:07 2009 +0000
@@ -11,6 +11,7 @@
    </td>
    <td class="forum-post-body">
       <div class="forum-post-info quiet">
+      {% 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 {{ post.creation_date|date:"M d, Y H:i" }}
          {% if can_moderate %}from IP: {{ post.user_ip }}{% endif %}