Mercurial > public > sg101
changeset 103:bb3f0d315c5f
Forums: added template support for displaying stickied topics.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Thu, 17 Sep 2009 00:20:00 +0000 |
parents | e67c4dd98db5 |
children | 59688577a8f1 |
files | gpp/templates/forums/forum_index.html |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/gpp/templates/forums/forum_index.html Wed Sep 16 02:01:57 2009 +0000 +++ b/gpp/templates/forums/forum_index.html Thu Sep 17 00:20:00 2009 +0000 @@ -25,7 +25,8 @@ <tbody> {% for topic in page.object_list %} <tr class="{% cycle 'odd' 'even' %}"> - <td>{% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" + <td>{% 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> <td class="forum-index_replies">{{ topic.reply_count }}</td>