Mercurial > public > sg101
diff gpp/templates/forums/forum_index.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 | f8f4514b806a |
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html Sun Oct 11 19:10:54 2009 +0000 +++ b/gpp/templates/forums/forum_index.html Sun Oct 11 20:27:07 2009 +0000 @@ -30,7 +30,9 @@ <tbody> {% for topic in page.object_list %} <tr class="{% cycle 'odd' 'even' %}"> - <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} + <td> + {% if topic.has_unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" />{% endif %} + {% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" class="forums-topic-icon" />{% endif %} <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td>