bgneal@86: {% extends 'base.html' %}
bgneal@127: {% load forum_tags %}
bgneal@86: {% block title %}Forums: {{ topic.name }}{% endblock %}
bgneal@107: {% block custom_js %}{{ form.media }}{% endblock %}
bgneal@86: {% block content %}
bgneal@86: <h2>Forums: {{ topic.name }}</h2>
bgneal@86: 
bgneal@86: <h3>
bgneal@86:    <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> &raquo;
bgneal@86:    <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> &raquo;
bgneal@86:    <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
bgneal@86: </h3>
bgneal@86: 
bgneal@86: <div class="forum-block">
bgneal@104: {% if topic.sticky %}
bgneal@104: <img src="{{ MEDIA_URL }}/icons/asterisk_orange.png" alt="Sticky" title="Sticky" />
bgneal@104: {% endif %}
bgneal@102: {% if topic.locked %}
bgneal@102: <img src="{{ MEDIA_URL }}/icons/lock.png" alt="Lock" title="This topic is locked" />
bgneal@104: {% endif %}
bgneal@104: {% if can_reply %}
bgneal@104: {% if topic.locked or topic.sticky %}&bull;{% endif %}
bgneal@87: {% if last_page %}
bgneal@102: <a href="#forum-reply-form">New Reply</a>
bgneal@87: {% else %}
bgneal@102: <a href="./?page={{ page.paginator.num_pages }}#forum-reply-form">New Reply</a>
bgneal@87: {% endif %}
bgneal@102: {% endif %}
bgneal@102: &bull; <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a>
bgneal@97: {{ page_nav }}
bgneal@86: 
bgneal@89: <table class="forum-topic" id="forum-topic">
bgneal@90: {% for post in page.object_list %}
bgneal@89: {% include 'forums/display_post.html' %}
bgneal@86: {% endfor %}
bgneal@86: </table>
bgneal@97: {{ page_nav }}
bgneal@109: {% if can_moderate %}
bgneal@109: <div class="forum-mod-controls">
bgneal@109:    <form action="{% url forums-mod_topic_stick topic.id %}" method="post">
bgneal@109:       <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" />
bgneal@109:    </form>
bgneal@109:    <form action="{% url forums-mod_topic_lock topic.id %}" method="post">
bgneal@109:       <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" />
bgneal@109:    </form>
bgneal@109:    <form action="{% url forums-mod_topic_delete topic.id %}" method="post">
bgneal@109:       <input type="submit" value="Delete Topic" id="forum-mod-del-topic" />
bgneal@109:    </form>
bgneal@110:    <a href="{% url forums-mod_topic_move topic.id %}"><img src="{{ MEDIA_URL }}icons/application_go.png" alt="Move Topic" title="Move Topic" /></a>
bgneal@110:    <a href="{% url forums-mod_topic_move topic.id %}">Move this topic</a>
bgneal@115:    <a href="{% url forums-mod_topic_split topic.id %}"><img src="{{ MEDIA_URL }}icons/arrow_branch.png" alt="Split Topic" title="Split Topic" /></a>
bgneal@115:    <a href="{% url forums-mod_topic_split topic.id %}">Split this topic</a>
bgneal@109: </div>
bgneal@109: {% endif %}
bgneal@90: 
bgneal@104: {% if last_page and can_reply %}
bgneal@87: <a name="forum-reply-form"></a>
bgneal@127: {% show_form "Reply to Topic" form "Submit Reply" 1 MEDIA_URL %}
bgneal@86: {% endif %}
bgneal@86: </div>
bgneal@86: {% endblock %}