comparison gpp/templates/forums/forum_index.html @ 161:445e1466a98d

Implement #47; add goto page links on topics in the forum index view.
author Brian Neal <bgneal@gmail.com>
date Tue, 22 Dec 2009 03:31:43 +0000
parents f8f4514b806a
children cf9f9d4c4d54
comparison
equal deleted inserted replaced
160:2eb3984ccb15 161:445e1466a98d
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 {% 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 %} 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" 36 {% if topic.locked %}<img src="{{ MEDIA_URL }}icons/lock.png" alt="Locked" title="Locked"
37 class="forums-topic-icon" />{% endif %} 37 class="forums-topic-icon" />{% endif %}
38 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4></td> 38 <h4><a href="{{ topic.get_absolute_url }}">{{ topic.name }}</a></h4>
39 {% if topic.page_range %}
40 <span class="small">Goto page: [
41 {% for n in topic.page_range %}
42 {% if n %}
43 <a href="{{ topic.get_absolute_url }}?page={{ n }}">{{ n }}</a>
44 {% else %}
45 &hellip;
46 {% endif %}
47 {% endfor %}
48 ]</span>
49 {% endif %}
50 </td>
39 <td class="forum-index_replies">{{ topic.reply_count }}</td> 51 <td class="forum-index_replies">{{ topic.reply_count }}</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> 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_views">{{ topic.view_count }}</td> 53 <td class="forum-index_views">{{ topic.view_count }}</td>
42 <td class="forum-index_last_post"> 54 <td class="forum-index_last_post">
43 {% last_post_info topic.last_post %} 55 {% last_post_info topic.last_post %}