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