diff gpp/templates/forums/index.html @ 113:d97ceb95ce02

Forums: ForumLastVisit logic in place. Need to add code for topics and posts next.
author Brian Neal <bgneal@gmail.com>
date Sun, 11 Oct 2009 19:10:54 +0000
parents 806399f3b950
children f8f4514b806a
line wrap: on
line diff
--- a/gpp/templates/forums/index.html	Wed Sep 30 00:42:13 2009 +0000
+++ b/gpp/templates/forums/index.html	Sun Oct 11 19:10:54 2009 +0000
@@ -19,7 +19,11 @@
       <tbody>
          {% for forum in iter.forums %}
             <tr class="{% cycle 'odd' 'even' %}">
-               <td><h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4>
+               <td>
+                  {% if forum.has_unread %}
+                  <img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" />
+                  {% endif %}
+                  <h4><a href="{{ forum.get_absolute_url }}">{{ forum.name }}</a></h4>
                   <p>{{ forum.description }}</p></td>
                <td class="forum-topics">{{ forum.topic_count }}</td>
                <td class="forum-posts">{{ forum.post_count }}</td>