comparison gpp/templates/forums/topic.html @ 358:768e3568addf

Fixing #172; add a forums jump box.
author Brian Neal <bgneal@gmail.com>
date Fri, 04 Mar 2011 03:50:07 +0000
parents cfad8d605cb8
children 59aaba88405e
comparison
equal deleted inserted replaced
357:8e3f252e4fbb 358:768e3568addf
1 {% extends 'base.html' %} 1 {% extends 'base.html' %}
2 {% load url from future %} 2 {% load url from future %}
3 {% load forum_tags %} 3 {% load forum_tags %}
4 {% block title %}Forums: {{ topic.name }}{% endblock %} 4 {% block title %}Forums: {{ topic.name }}{% endblock %}
5 {% block custom_js %}{{ form.media }}{% endblock %} 5 {% block custom_js %}
6 {{ form.media }}
7 {% include "forums/jump_box.js" %}
8 {% endblock %}
6 {% block content %} 9 {% block content %}
7 {% forum_navigation topic %} 10 {% forum_navigation topic %}
8 11
9 <div class="forum-block"> 12 <div class="forum-block">
10 {% if topic.sticky %} 13 {% if topic.sticky %}
28 {% for post in page.object_list %} 31 {% for post in page.object_list %}
29 {% include 'forums/display_post.html' %} 32 {% include 'forums/display_post.html' %}
30 {% endfor %} 33 {% endfor %}
31 </table> 34 </table>
32 {{ page_nav }} 35 {{ page_nav }}
36 {% include 'forums/jump_box.html' %}
33 {% if can_moderate %} 37 {% if can_moderate %}
34 <div class="forum-mod-controls"> 38 <div class="forum-mod-controls">
35 <form action="{% url 'forums-mod_topic_stick' topic.id %}" method="post">{% csrf_token %} 39 <form action="{% url 'forums-mod_topic_stick' topic.id %}" method="post">{% csrf_token %}
36 <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" /> 40 <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" />
37 </form> 41 </form>