Mercurial > public > sg101
comparison gpp/templates/forums/forum_index.html @ 167:cf9f9d4c4d54
Adding a query to the forums to get all the topics with unread posts. This is for ticket #54.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 24 Jan 2010 22:33:11 +0000 |
parents | 445e1466a98d |
children | 6a5549c2efb5 |
comparison
equal
deleted
inserted
replaced
166:8acf5be27f18 | 167:cf9f9d4c4d54 |
---|---|
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> | 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 %} | 34 {% topic_icons topic %} |
35 {% if topic.sticky %}<img src="{{ MEDIA_URL }}icons/asterisk_orange.png" alt="Sticky" title="Sticky" class="forums-topic-icon" />{% endif %} | |
36 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked" | |
37 class="forums-topic-icon" />{% endif %} | |
38 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4> | 35 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4> |
39 {% if topic.page_range %} | 36 {% if topic.page_range %} |
40 <span class="small">Goto page: [ | 37 {% topic_page_range topic %} |
41 {% for n in topic.page_range %} | |
42 {% if n %} | |
43 <a href="{{ topic.get_absolute_url }}?page={{ n }}">{{ n }}</a> | |
44 {% else %} | |
45 … | |
46 {% endif %} | |
47 {% endfor %} | |
48 ]</span> | |
49 {% endif %} | 38 {% endif %} |
50 </td> | 39 </td> |
51 <td class="forum-index_replies">{{ topic.reply_count }}</td> | 40 <td class="forum-index_replies">{{ topic.reply_count }}</td> |
52 <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> | 41 <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> |
53 <td class="forum-index_views">{{ topic.view_count }}</td> | 42 <td class="forum-index_views">{{ topic.view_count }}</td> |