21
{% block content_header %}
22
<h1>Topic: {{ topic }} </h1>
25
{% block content_main %}
21
<h1>Topic: {{ topic }} </h1>
26
22
<div class="blogEntry">
27
23
<div class="breadCrumb">
28
<a href="{% url 'pybb_index' %}">Forums</a> »
29
{% pybb_link topic.forum.category %} »
30
<a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> »
33
{% if topic.is_hidden %}
34
<p>This topic is hidden. It is either waiting for a review or was hidden by a moderator.</p>
35
{% if posts.0.is_spam and moderator %}
36
<p>This topic's first post is possible spam. Toggle the visibility to show the post. If it is indeed spam, consider deleting the user:</p>
37
<p>To delete the user, go to the <a href="/admin/auth/user/{{posts.0.user.pk}}/change/">admin user-page for the post's author</a></p>
39
<div class="posRight">
41
<a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
42
<img src="{% static 'forum/img/topic_show.png' %}" alt ="" class="middle" />
43
<span class="middle">{% trans "Toggle Visibility" %}</span>
47
<div class="posRight">
49
<a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
50
<img src="{% static 'forum/img/topic_hide.png' %}" alt ="" class="middle" />
51
<span class="middle">{% trans "Toggle Visibility" %}</span>
54
<a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
55
<img src="{% static 'forum/img/unstick.png' %}" alt ="" class="middle" />
56
<span class="middle">{% trans "Unstick Topic" %}</span>
59
<a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
60
<img src="{% static 'forum/img/sticky.png' %}" alt ="" class="middle" />
61
<span class="middle">{% trans "Stick Topic" %}</span>
65
<a class="button" href="{% url 'pybb_open_topic' topic.id %}">
66
<img src="{% static 'forum/img/open.png' %}" alt ="" class="middle" />
67
<span class="middle">{% trans "Open Topic" %}</span>
70
<a class="button" href="{% url 'pybb_close_topic' topic.id %}">
71
<img src="{% static 'forum/img/closed.png' %}" alt ="" class="middle" />
72
<span class="middle">{% trans "Close Topic" %}</span>
76
{% if user.is_authenticated %}
78
<a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
79
<img src="{% static 'forum/img/unsubscribe.png' %}" alt ="" class="middle" />
80
<span class="middle">{% trans "Unsubscribe" %}</span>
83
<a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
84
<img src="{% static 'forum/img/subscribe.png' %}" alt ="" class="middle" />
85
<span class="middle">{% trans "Subscribe" %}</span>
88
<a class="button" href="{% url 'pybb_add_post' topic.id %}">
89
<img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
90
<span class="middle">{% trans "New Reply" %}</span>
94
{% autopaginate posts page_size as object_list %}
95
{% paginate using "pagination/pagination_mod.html" %}
98
{% ifnotequal first_post posts.0 %}
99
{% with first_post as post %}
100
{% trans "First Post" %}:
101
<table class="forum">
105
{{ post.user|user_link }}<br />
106
{% if post.user.wlprofile_extras.avatar %}
107
<a href="{% url 'profile_view' post.user %}">
108
<img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
111
<div class="authorStats">
112
<strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
113
<strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
114
<img src="{% static 'img/' %}{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
115
<strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
116
{% if post.user.wlprofile.location %}
117
<strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
122
<a id="post-{{ post.id }}" href="{{post.get_absolute_url}}" title="{% trans "Permalink" %}" class="posRight small permalink"> </a>
123
<span class="small">Posted at: {{ post.created|custom_date:user}}</span>
126
{{ post.body_html|safe }}
129
{% if post.attachment_cache %}
130
{% for attach in post.attachment_cache %}
131
{% trans "Attachment" %}: <a href="{{ attach.get_absolute_url }}">{{ attach.name }}</a> ({{ attach.size_display }})
135
{% if post.updated %}
136
<span class="small">{% trans "Edited" %}: {{ post.updated|custom_date:user|title}}</span>
139
{% if user.is_authenticated %}
140
{% ifequal user.wlprofile.show_signatures 1 %}
141
{% if post.user.wlprofile.signature %}
142
{{ post.user.wlprofile.signature|urlize|linebreaks }}
146
{% if post.user.wlprofile.signature %}
147
{{ post.user.wlprofile.signature|urlize|linebreaks }}
151
<button onclick="window.location.href='#top';" class="posRight">
152
<img src="{% static 'forum/img/top.png' %}" alt ="" class="middle" />
153
<span class="middle">{% trans "Top" %}</span>
156
<button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">
157
<img src="{% static 'forum/img/quote.png' %}" alt ="" class="middle" />
158
<span class="middle">{% trans "Quote" %}</span>
160
{% if moderator or post|pybb_posted_by:user %}
161
<button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">
162
<img src="{% static 'forum/img/edit.png' %}" alt ="" class="middle" />
163
<span class="middle">{% trans "Edit" %}</span>
165
{% if moderator or post|pybb_equal_to:last_post %}
166
<button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">
167
<img src="{% static 'forum/img/delete.png' %}" alt ="" class="middle" />
168
<span class="middle">{% trans "Delete" %}</span>
181
<table class="forum">
183
{% for post in object_list %}
186
{% include 'pybb/inlines/post.html' %}
188
<tr class="{% cycle 'odd' 'even' %}" {% if post.is_spam %} style="background-color: gray" {% endif %}>
190
{{ post.user|user_link }}<br />
191
{% if post.user.wlprofile.avatar %}
192
<a href="{% url 'profile_view' post.user %}">
193
<img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
196
<div class="authorStats">
197
<strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
198
<strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
199
<img src="{% static 'img/'%}{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
200
<strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
201
{% if post.user.wlprofile.location %}
202
<strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
207
<a id="post-{{ post.id }}" href="{{post.get_absolute_url}}" title="{% trans "Permalink" %}" class="posRight small permalink"> </a>
208
<span class="small">Posted at: {{ post.created|custom_date:user}}</span>
211
{{ post.body_html|safe }}
214
{% if post.attachment_cache %}
215
{% for attach in post.attachment_cache %}
216
{% trans "Attachment" %}: <a href="{{ attach.get_absolute_url }}">{{ attach.name }}</a> ({{ attach.size_display }})
220
{% if post.updated %}
221
<span class="small">{% trans "Edited" %}: {{ post.updated|custom_date:user|title}}</span>
224
{% if user.is_authenticated %}
225
{% ifequal user.wlprofile.show_signatures 1 %}
226
{% if post.user.wlprofile.signature %}
227
{{ post.user.wlprofile.signature|urlize|linebreaks }}
231
{% if post.user.wlprofile.signature %}
232
{{ post.user.wlprofile.signature|urlize|linebreaks }}
236
<a class="button posRight" href="#top">
237
<img src="{% static 'forum/img/top.png' %}" alt ="" class="middle" />
238
<span class="middle">{% trans "Top" %}</span>
241
<a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
242
<img src="{% static 'forum/img/quote.png' %}" alt ="" class="middle" />
243
<span class="middle">{% trans "Quote" %}</span>
245
{% if moderator or post|pybb_posted_by:user %}
246
<a class="button" href="{% url 'pybb_edit_post' post.id %}">
247
<img src="{% static 'forum/img/edit.png' %}" alt ="" class="middle" />
248
<span class="middle">{% trans "Edit" %}</span>
250
{% if moderator or post|pybb_equal_to:last_post %}
251
<a class="button" href="{% url 'pybb_delete_post' post.id %}">
252
<img src="{% static 'forum/img/delete.png' %}" alt ="" class="middle" />
253
<span class="middle">{% trans "Delete" %}</span>
259
{% if not forloop.last %}
260
{# no spacer at end of table #}
270
<div class="posRight">
272
<a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
273
<img src="{% static 'forum/img/topic_hide.png' %}" alt ="" class="middle" />
274
<span class="middle">{% trans "Toggle Visibility" %}</span>
276
{% if topic.sticky %}
277
<a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
278
<img src="{% static 'forum/img/unstick.png' %}" alt ="" class="middle" />
279
<span class="middle">{% trans "Unstick Topic" %}</span>
282
<a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
283
<img src="{% static 'forum/img/sticky.png' %}" alt ="" class="middle" />
284
<span class="middle">{% trans "Stick Topic" %}</span>
287
{% if topic.closed %}
288
<a class="button" href="{% url 'pybb_open_topic' topic.id %}">
289
<img src="{% static 'forum/img/open.png' %}" alt ="" class="middle" />
290
<span class="middle">{% trans "Open Topic" %}</span>
293
<a class="button" href="{% url 'pybb_close_topic' topic.id %}">
294
<img src="{% static 'forum/img/closed.png' %}" alt ="" class="middle" />
295
<span class="middle">{% trans "Close Topic" %}</span>
299
{% if user.is_authenticated %}
301
<a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
302
<img src="{% static 'forum/img/unsubscribe.png' %}" alt ="" class="middle" />
303
<span class="middle">{% trans "Unsubscribe" %}</span>
306
<a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
307
<img src="{% static 'forum/img/subscribe.png' %}" alt ="" class="middle" />
308
<span class="middle">{% trans "Subscribe" %}</span>
311
<a class="button" href="{% url 'pybb_add_post' topic.id %}">
312
<img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
313
<span class="middle">{% trans "New Reply" %}</span>
320
{% if user.is_authenticated %}
321
{% if not topic.closed %}
322
{% include "pybb/inlines/add_post_form.html" %}
24
<a href="{% url 'pybb_index' %}">Forums</a> »
25
{% pybb_link topic.forum.category %} »
26
<a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> »
30
<div class="posRight">
33
<a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
34
<img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
35
<span class="middle">{% trans "Unstick Topic" %}</span>
38
<a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
39
<img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
40
<span class="middle">{% trans "Stick Topic" %}</span>
44
<a class="button" href="{% url 'pybb_open_topic' topic.id %}">
45
<img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
46
<span class="middle">{% trans "Open Topic" %}</span>
49
<a class="button" href="{% url 'pybb_close_topic' topic.id %}">
50
<img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
51
<span class="middle">{% trans "Close Topic" %}</span>
55
{% if user.is_authenticated %}
57
<a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
58
<img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
59
<span class="middle">{% trans "Unsubscribe" %}</span>
62
<a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
63
<img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
64
<span class="middle">{% trans "Subscribe" %}</span>
67
<a class="button" href="{% url 'pybb_add_post' topic.id %}">
68
<img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
69
<span class="middle">{% trans "New Reply" %}</span>
73
{% autopaginate posts page_size as object_list %}
74
{% paginate using "pagination/pagination_mod.html" %}
77
{% ifnotequal first_post posts.0 %}
78
{% with first_post as post %}
79
{% trans "First Post" %}:
84
{{ post.user|user_link }}<br />
85
{% if post.user.wlprofile_extras.avatar %}
86
<a href="{% url 'profile_view' post.user %}">
87
<img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
90
<div class="authorStats">
91
<strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
92
<strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
93
<img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
94
<strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
95
{% if post.user.wlprofile.location %}
96
<strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
101
<a id="post-{{ post.id }}" href="{{post.get_absolute_url}}" title="{% trans "Permalink" %}" class="posRight small permalink"> </a>
102
<span class="small">Posted at: {{ post.created|custom_date:user}}</span>
105
{{ post.body_html|safe }}
108
{% if post.attachment_cache %}
109
{% for attach in post.attachment_cache %}
110
{% trans "Attachment" %}: <a href="{{ attach.get_absolute_url }}">{{ attach.name }}</a> ({{ attach.size_display }})
114
{% if post.updated %}
115
<span class="small">{% trans "Edited" %}: {{ post.updated|custom_date:user|title}}</span>
118
{% if user.is_authenticated %}
119
{% ifequal user.wlprofile.show_signatures 1 %}
120
{% if post.user.wlprofile.signature %}
121
{{ post.user.wlprofile.signature|urlize|linebreaks }}
125
{% if post.user.wlprofile.signature %}
126
{{ post.user.wlprofile.signature|urlize|linebreaks }}
130
<button onclick="window.location.href='#top';" class="posRight">
131
<img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />
132
<span class="middle">{% trans "Top" %}</span>
135
<button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">
136
<img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
137
<span class="middle">{% trans "Quote" %}</span>
139
{% if moderator or post|pybb_posted_by:user %}
140
<button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">
141
<img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
142
<span class="middle">{% trans "Edit" %}</span>
144
{% if moderator or post|pybb_equal_to:last_post %}
145
<button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">
146
<img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
147
<span class="middle">{% trans "Delete" %}</span>
160
<table class="forum">
162
{% for post in object_list %}
165
{% include 'pybb/inlines/post.html' %}
167
<tr class="{% cycle 'odd' 'even' %}">
169
{{ post.user|user_link }}<br />
170
{% if post.user.wlprofile.avatar %}
171
<a href="{% url 'profile_view' post.user %}">
172
<img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
175
<div class="authorStats">
176
<strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
177
<strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
178
<img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
179
<strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
180
{% if post.user.wlprofile.location %}
181
<strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
186
<a id="post-{{ post.id }}" href="{{post.get_absolute_url}}" title="{% trans "Permalink" %}" class="posRight small permalink"> </a>
187
<span class="small">Posted at: {{ post.created|custom_date:user}}</span>
190
{{ post.body_html|safe }}
193
{% if post.attachment_cache %}
194
{% for attach in post.attachment_cache %}
195
{% trans "Attachment" %}: <a href="{{ attach.get_absolute_url }}">{{ attach.name }}</a> ({{ attach.size_display }})
199
{% if post.updated %}
200
<span class="small">{% trans "Edited" %}: {{ post.updated|custom_date:user|title}}</span>
203
{% if user.is_authenticated %}
204
{% ifequal user.wlprofile.show_signatures 1 %}
205
{% if post.user.wlprofile.signature %}
206
{{ post.user.wlprofile.signature|urlize|linebreaks }}
210
{% if post.user.wlprofile.signature %}
211
{{ post.user.wlprofile.signature|urlize|linebreaks }}
215
<a class="button posRight" href="#top">
216
<img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />
217
<span class="middle">{% trans "Top" %}</span>
220
<a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
221
<img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
222
<span class="middle">{% trans "Quote" %}</span>
224
{% if moderator or post|pybb_posted_by:user %}
225
<a class="button" href="{% url 'pybb_edit_post' post.id %}">
226
<img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
227
<span class="middle">{% trans "Edit" %}</span>
229
{% if moderator or post|pybb_equal_to:last_post %}
230
<a class="button" href="{% url 'pybb_delete_post' post.id %}">
231
<img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
232
<span class="middle">{% trans "Delete" %}</span>
238
{% if not forloop.last %}
239
{# no spacer at end of table #}
249
<div class="posRight">
251
{% if topic.sticky %}
252
<a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
253
<img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
254
<span class="middle">{% trans "Unstick Topic" %}</span>
257
<a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
258
<img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
259
<span class="middle">{% trans "Stick Topic" %}</span>
262
{% if topic.closed %}
263
<a class="button" href="{% url 'pybb_open_topic' topic.id %}">
264
<img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
265
<span class="middle">{% trans "Open Topic" %}</span>
268
<a class="button" href="{% url 'pybb_close_topic' topic.id %}">
269
<img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
270
<span class="middle">{% trans "Close Topic" %}</span>
274
{% if user.is_authenticated %}
276
<a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
277
<img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
278
<span class="middle">{% trans "Unsubscribe" %}</span>
281
<a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
282
<img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
283
<span class="middle">{% trans "Subscribe" %}</span>
286
<a class="button" href="{% url 'pybb_add_post' topic.id %}">
287
<img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
288
<span class="middle">{% trans "New Reply" %}</span>
295
{% if user.is_authenticated %}
296
{% if not topic.closed %}
297
{% include "pybb/inlines/add_post_form.html" %}