Mercurial > public > sg101
comparison gpp/templates/forums/topic.html @ 93:4c33e266db03
Forums: paginate the topic list inside a forum.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Sep 2009 04:33:15 +0000 |
parents | 317c7bcaecee |
children | 96eec1ed0fd3 |
comparison
equal
deleted
inserted
replaced
92:62eb9cbbcffc | 93:4c33e266db03 |
---|---|
16 <a href="#forum-reply-form">New Reply</a> • | 16 <a href="#forum-reply-form">New Reply</a> • |
17 {% else %} | 17 {% else %} |
18 <a href="./?page={{ page.paginator.num_pages }}#forum-reply-form">New Reply</a> • | 18 <a href="./?page={{ page.paginator.num_pages }}#forum-reply-form">New Reply</a> • |
19 {% endif %} | 19 {% endif %} |
20 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> | 20 <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a> |
21 {% post_navigation page %} | 21 {% forum_page_navigation page %} |
22 | 22 |
23 <table class="forum-topic" id="forum-topic"> | 23 <table class="forum-topic" id="forum-topic"> |
24 {% for post in page.object_list %} | 24 {% for post in page.object_list %} |
25 {% include 'forums/display_post.html' %} | 25 {% include 'forums/display_post.html' %} |
26 {% endfor %} | 26 {% endfor %} |
27 </table> | 27 </table> |
28 {% post_navigation page %} | 28 {% forum_page_navigation page %} |
29 | 29 |
30 {% if last_page and user.is_authenticated %} | 30 {% if last_page and user.is_authenticated %} |
31 <a name="forum-reply-form"></a> | 31 <a name="forum-reply-form"></a> |
32 <form action="" method="post" id="forums-quick-reply"> | 32 <form action="" method="post" id="forums-quick-reply"> |
33 <fieldset> | 33 <fieldset> |