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