Mercurial > public > sg101
comparison 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 |
comparison
equal
deleted
inserted
replaced
113:d97ceb95ce02 | 114:535d02d1c017 |
---|---|
28 </tr> | 28 </tr> |
29 </thead> | 29 </thead> |
30 <tbody> | 30 <tbody> |
31 {% for topic in page.object_list %} | 31 {% for topic in page.object_list %} |
32 <tr class="{% cycle 'odd' 'even' %}"> | 32 <tr class="{% cycle 'odd' 'even' %}"> |
33 <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} | 33 <td> |
34 {% if topic.has_unread %}<img src="{{ MEDIA_URL }}icons/new.png" alt="New Posts" title="New Posts" class="forums-topic-icon" />{% endif %} | |
35 {% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} | |
34 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" | 36 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" |
35 class="forums-topic-icon" />{% endif %} | 37 class="forums-topic-icon" />{% endif %} |
36 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> | 38 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> |
37 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 39 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
38 <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> | 40 <td class="forum-index_author"><a href="{% url bio-view_profile username=topic.user.username %}" title="View profile for {{ topic.user.username }}">{{ topic.user.username }}</a></td> |