bgneal@86
|
1 {% extends 'base.html' %}
|
bgneal@127
|
2 {% load forum_tags %}
|
bgneal@86
|
3 {% block title %}Forums: {{ topic.name }}{% endblock %}
|
bgneal@107
|
4 {% block custom_js %}{{ form.media }}{% endblock %}
|
bgneal@86
|
5 {% block content %}
|
bgneal@283
|
6 {% forum_navigation topic %}
|
bgneal@86
|
7
|
bgneal@86
|
8 <div class="forum-block">
|
bgneal@104
|
9 {% if topic.sticky %}
|
bgneal@104
|
10 <img src="{{ MEDIA_URL }}/icons/asterisk_orange.png" alt="Sticky" title="Sticky" />
|
bgneal@104
|
11 {% endif %}
|
bgneal@102
|
12 {% if topic.locked %}
|
bgneal@102
|
13 <img src="{{ MEDIA_URL }}/icons/lock.png" alt="Lock" title="This topic is locked" />
|
bgneal@104
|
14 {% endif %}
|
bgneal@104
|
15 {% if can_reply %}
|
bgneal@104
|
16 {% if topic.locked or topic.sticky %}•{% endif %}
|
bgneal@87
|
17 {% if last_page %}
|
bgneal@102
|
18 <a href="#forum-reply-form">New Reply</a>
|
bgneal@87
|
19 {% else %}
|
bgneal@102
|
20 <a href="./?page={{ page.paginator.num_pages }}#forum-reply-form">New Reply</a>
|
bgneal@87
|
21 {% endif %}
|
bgneal@102
|
22 {% endif %}
|
bgneal@102
|
23 • <a href="{% url forums-new_topic slug=forum.slug %}">New Topic</a>
|
bgneal@97
|
24 {{ page_nav }}
|
bgneal@86
|
25
|
bgneal@89
|
26 <table class="forum-topic" id="forum-topic">
|
bgneal@90
|
27 {% for post in page.object_list %}
|
bgneal@89
|
28 {% include 'forums/display_post.html' %}
|
bgneal@86
|
29 {% endfor %}
|
bgneal@86
|
30 </table>
|
bgneal@97
|
31 {{ page_nav }}
|
bgneal@109
|
32 {% if can_moderate %}
|
bgneal@109
|
33 <div class="forum-mod-controls">
|
bgneal@194
|
34 <form action="{% url forums-mod_topic_stick topic.id %}" method="post">{% csrf_token %}
|
bgneal@109
|
35 <input type="submit" value="{% if topic.sticky %}Unstick{% else %}Stick{% endif %} Topic" />
|
bgneal@109
|
36 </form>
|
bgneal@194
|
37 <form action="{% url forums-mod_topic_lock topic.id %}" method="post">{% csrf_token %}
|
bgneal@109
|
38 <input type="submit" value="{% if topic.locked %}Unlock{% else %}Lock{% endif %} Topic" />
|
bgneal@109
|
39 </form>
|
bgneal@194
|
40 <form action="{% url forums-mod_topic_delete topic.id %}" method="post">{% csrf_token %}
|
bgneal@109
|
41 <input type="submit" value="Delete Topic" id="forum-mod-del-topic" />
|
bgneal@109
|
42 </form>
|
bgneal@110
|
43 <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
|
44 <a href="{% url forums-mod_topic_move topic.id %}">Move this topic</a>
|
bgneal@115
|
45 <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
|
46 <a href="{% url forums-mod_topic_split topic.id %}">Split this topic</a>
|
bgneal@109
|
47 </div>
|
bgneal@109
|
48 {% endif %}
|
bgneal@90
|
49
|
bgneal@104
|
50 {% if last_page and can_reply %}
|
bgneal@87
|
51 <a name="forum-reply-form"></a>
|
bgneal@127
|
52 {% show_form "Reply to Topic" form "Submit Reply" 1 MEDIA_URL %}
|
bgneal@86
|
53 {% endif %}
|
bgneal@181
|
54
|
bgneal@181
|
55 {% if user.is_authenticated %}
|
bgneal@233
|
56 <form action={% if is_favorite %}"{% url forums-unfavorite_topic topic.id %}"{% else %}"{% url forums-favorite_topic topic.id %}"{% endif %} method="post">{% csrf_token %}
|
bgneal@232
|
57 <fieldset>
|
bgneal@232
|
58 <legend>Favorite Options</legend>
|
bgneal@232
|
59 <p>
|
bgneal@232
|
60 {% if is_favorite %}
|
bgneal@232
|
61 <img src="{{ MEDIA_URL }}icons/delete.png" alt="Favorite" />
|
bgneal@232
|
62 You currently have saved this topic in your list of favorites.
|
bgneal@232
|
63 <input type="submit" value="Remove from favorites" />
|
bgneal@232
|
64 {% else %}
|
bgneal@232
|
65 <img src="{{ MEDIA_URL }}icons/add.png" alt="Favorite" />
|
bgneal@232
|
66 Would you like to save this topic to your favorites list?
|
bgneal@232
|
67 <input type="submit" value="Save to favorites" />
|
bgneal@232
|
68 {% endif %}
|
bgneal@232
|
69 </p>
|
bgneal@232
|
70 <p>
|
bgneal@232
|
71 To manage all your forum topic favorites, please visit your
|
bgneal@232
|
72 <a href="{% url forums-manage_favorites %}">favorites page</a>.
|
bgneal@232
|
73 </p>
|
bgneal@232
|
74 </fieldset>
|
bgneal@232
|
75 </form>
|
bgneal@232
|
76
|
bgneal@194
|
77 <form action={% if is_subscribed %}"{% url forums-unsubscribe_topic topic.id %}"{% else %}"{% url forums-subscribe_topic topic.id %}"{% endif %} method="post">{% csrf_token %}
|
bgneal@181
|
78 <fieldset>
|
bgneal@181
|
79 <legend>Subscription Options</legend>
|
bgneal@181
|
80 <p>
|
bgneal@181
|
81 {% if is_subscribed %}
|
bgneal@181
|
82 <img src="{{ MEDIA_URL }}icons/email_delete.png" alt="Email" />
|
bgneal@181
|
83 You are currently subscribed to this topic and will receive an email when new replies are posted.
|
bgneal@181
|
84 <input type="submit" value="Unsubscribe Me" />
|
bgneal@181
|
85 {% else %}
|
bgneal@181
|
86 <img src="{{ MEDIA_URL }}icons/email_add.png" alt="Email" />
|
bgneal@181
|
87 Would you like to receive an email when someone replies to this topic?
|
bgneal@181
|
88 <input type="submit" value="Subscribe via Email" />
|
bgneal@181
|
89 {% endif %}
|
bgneal@181
|
90 </p>
|
bgneal@181
|
91 <p>
|
bgneal@181
|
92 To manage all your forum topic subscriptions, please visit your
|
bgneal@181
|
93 <a href="{% url forums-manage_subscriptions %}">subscriptions page</a>.
|
bgneal@181
|
94 </p>
|
bgneal@181
|
95 </fieldset>
|
bgneal@181
|
96 </form>
|
bgneal@181
|
97 {% endif %}
|
bgneal@86
|
98 </div>
|
bgneal@86
|
99 {% endblock %}
|