Mercurial > public > sg101
comparison gpp/templates/forums/forum_index.html @ 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 | e5faf9f0c11a |
comparison
equal
deleted
inserted
replaced
102:e67c4dd98db5 | 103:bb3f0d315c5f |
---|---|
23 </tr> | 23 </tr> |
24 </thead> | 24 </thead> |
25 <tbody> | 25 <tbody> |
26 {% for topic in page.object_list %} | 26 {% for topic in page.object_list %} |
27 <tr class="{% cycle 'odd' 'even' %}"> | 27 <tr class="{% cycle 'odd' 'even' %}"> |
28 <td>{% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" | 28 <td>{% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} |
29 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" | |
29 class="forums-topic-icon" />{% endif %} | 30 class="forums-topic-icon" />{% endif %} |
30 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> | 31 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> |
31 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 32 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
32 <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> | 33 <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> |
33 <td class="forum-index_views">{{ topic.view_count }}</td> | 34 <td class="forum-index_views">{{ topic.view_count }}</td> |