bgneal@86
|
1 {% extends 'base.html' %}
|
bgneal@86
|
2 {% block title %}Forums: {{ topic.name }}{% endblock %}
|
bgneal@107
|
3 {% block custom_js %}{{ form.media }}{% endblock %}
|
bgneal@86
|
4 {% block content %}
|
bgneal@86
|
5 <h2>Forums: {{ topic.name }}</h2>
|
bgneal@86
|
6
|
bgneal@86
|
7 <h3>
|
bgneal@86
|
8 <a href="{% url forums-index %}">SurfGuitar101 Forum Index</a> »
|
bgneal@86
|
9 <a href="{% url forums-forum_index slug=forum.slug %}">{{ forum.name }}</a> »
|
bgneal@86
|
10 <a href="{% url forums-topic_index id=topic.id %}">{{ topic.name }}</a>
|
bgneal@86
|
11 </h3>
|
bgneal@86
|
12
|
bgneal@86
|
13 <div class="forum-block">
|
bgneal@104
|
14 {% if topic.sticky %}
|
bgneal@104
|
15 <img src="{{ MEDIA_URL }}/icons/asterisk_orange.png" alt="Sticky" title="Sticky" />
|
bgneal@104
|
16 {% endif %}
|
bgneal@102
|
17 {% if topic.locked %}
|
bgneal@102
|
18 <img src="{{ MEDIA_URL }}/icons/lock.png" alt="Lock" title="This topic is locked" />
|
bgneal@104
|
19 {% endif %}
|
bgneal@104
|
20 {% if can_reply %}
|
bgneal@104
|
21 {% if topic.locked or topic.sticky %}•{% endif %}
|
bgneal@87
|
22 {% if last_page %}
|
bgneal@102
|
23 <a href="#forum-reply-form">New Reply</a>
|
bgneal@87
|
24 {% else %}
|
bgneal@102
|
25 <a href="./?page={{ page.paginator.num_pages }}#forum-reply-form">New Reply</a>
|
bgneal@87
|
26 {% endif %}
|
bgneal@102
|
27 {% endif %}
|
bgneal@102
|
28 • <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a>
|
bgneal@97
|
29 {{ page_nav }}
|
bgneal@86
|
30
|
bgneal@89
|
31 <table class="forum-topic" id="forum-topic">
|
bgneal@90
|
32 {% for post in page.object_list %}
|
bgneal@89
|
33 {% include 'forums/display_post.html' %}
|
bgneal@86
|
34 {% endfor %}
|
bgneal@86
|
35 </table>
|
bgneal@97
|
36 {{ page_nav }}
|
bgneal@109
|
37 {% if can_moderate %}
|
bgneal@109
|
38 <div class="forum-mod-controls">
|
bgneal@109
|
39 <form action="{% url forums-mod_topic_stick topic.id %}" method="post">
|
bgneal@109
|
40 <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" />
|
bgneal@109
|
41 </form>
|
bgneal@109
|
42 <form action="{% url forums-mod_topic_lock topic.id %}" method="post">
|
bgneal@109
|
43 <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" />
|
bgneal@109
|
44 </form>
|
bgneal@109
|
45 <form action="{% url forums-mod_topic_delete topic.id %}" method="post">
|
bgneal@109
|
46 <input type="submit" value="Delete Topic" id="forum-mod-del-topic" />
|
bgneal@109
|
47 </form>
|
bgneal@110
|
48 <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
|
49 <a href="{% url forums-mod_topic_move topic.id %}">Move this topic</a>
|
bgneal@115
|
50 <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
|
51 <a href="{% url forums-mod_topic_split topic.id %}">Split this topic</a>
|
bgneal@109
|
52 </div>
|
bgneal@109
|
53 {% endif %}
|
bgneal@90
|
54
|
bgneal@104
|
55 {% if last_page and can_reply %}
|
bgneal@87
|
56 <a name="forum-reply-form"></a>
|
bgneal@89
|
57 <form action="" method="post" id="forums-quick-reply">
|
bgneal@86
|
58 <fieldset>
|
bgneal@87
|
59 <legend>Reply to "{{ topic.name }}"</legend>
|
bgneal@86
|
60 {{ form.as_p }}
|
bgneal@123
|
61 <a href="#" id="more_smileys">
|
bgneal@123
|
62 <img src="{{ MEDIA_URL }}icons/emoticon_smile.png" alt="More smileys" title="More smileys" /></a>
|
bgneal@89
|
63 <input type="submit" value="Submit Reply" id="forums-reply-post" />
|
bgneal@86
|
64 </fieldset>
|
bgneal@86
|
65 </form>
|
bgneal@123
|
66 <div id="smileys_dialog" title="More Smileys">
|
bgneal@123
|
67 <img src="{{ MEDIA_URL }}icons/ajax_busy.gif" alt="Loading" id="smiley_busy" />
|
bgneal@123
|
68 </div>
|
bgneal@86
|
69 {% endif %}
|
bgneal@86
|
70 </div>
|
bgneal@86
|
71 {% endblock %}
|