Mercurial > public > sg101
comparison gpp/templates/forums/forum_index.html @ 102:e67c4dd98db5
Forums: new topic form sprouts boolean fields for sticky and locking if the user has rights. Implemented the locked logic. Fixed a bug where topics where getting out of order (the view_count was bumping the update_date because of auto_now).
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 16 Sep 2009 02:01:57 +0000 |
parents | 96eec1ed0fd3 |
children | bb3f0d315c5f |
comparison
equal
deleted
inserted
replaced
101:4bbb6a9aa317 | 102:e67c4dd98db5 |
---|---|
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><h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> | 28 <td>{% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" |
29 class="forums-topic-icon" />{% endif %} | |
30 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> | |
29 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 31 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
30 <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> | 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> |
31 <td class="forum-index_views">{{ topic.view_count }}</td> | 33 <td class="forum-index_views">{{ topic.view_count }}</td> |
32 <td class="forum-index_last_post"> | 34 <td class="forum-index_last_post"> |
33 {% last_post_info topic.last_post MEDIA_URL %} | 35 {% last_post_info topic.last_post MEDIA_URL %} |