1
1
{% extends 'pybb/base.html' %}
2
2
{% load pybb_extras %}
6
{% load wlprofile_extras %}
6
10
{{ topic.name }} - {{ topic.forum.name }} - {{ block.super }}
7
11
{% endblock title %}
9
13
{% block extra_head %}
10
<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ topic.forum.name }}'" href="{% url pybb_feed "posts" %}{{topic.forum.id}}/" />
11
<link rel="alternate" type="application/atom+xml" title="Latest Topics on forum '{{ topic.forum.name }}'" href="{% url pybb_feed "topics"%}{{topic.forum.id}}/" />
14
<link rel="alternate" type="application/atom+xml" title="Latest Posts on forum '{{ topic.forum.name }}'" href="{% url 'pybb_feed_posts' %}{{topic.forum.id}}/" />
15
<link rel="alternate" type="application/atom+xml" title="Latest Topics on forum '{{ topic.forum.name }}'" href="{% url 'pybb_feed_topics' %}{{topic.forum.id}}/" />
15
19
{% block content %}
16
{% include "django_messages/inlines/navigation.html" %}
19
<div class="box_item_model">
20
<span class="title"><a href="/forum/">Forum</a> ⇒ <a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> ⇒ {{ topic }}</span>
22
{% pybb_pagination _('Posts') %}
23
<div class="posts" style="clear:left">
24
<a name="top" id="top"></a>
25
<table cellspacing="1" width="100%">
28
<th width="85%" nowrap="nowrap">Message</th>
33
{% ifnotequal first_post posts.0 %}
34
{% with first_post as post %}
35
<div class="post first_post">
36
{% include "pybb/inlines/post.html" %}
41
{% for post in posts %}
43
{% include "pybb/inlines/post.html" %}
47
{% pybb_pagination _('Posts') %}
49
<div class="controls">
53
<a href="{% url pybb_unstick_topic topic.id %}">
54
<img src="{{MEDIA_URL}}/forum/img/en/unstick_topic.png" height="25" alr="{% trans "Unstick topic" %}" />
57
<a href="{% url pybb_stick_topic topic.id %}">
58
<img src="{{MEDIA_URL}}/forum/img/en/stick_topic.png" height="25" alt ="{% trans "Stick Topic" %}" />
62
<a href="{% url pybb_open_topic topic.id %}">
63
<img src="{{MEDIA_URL}}/forum/img/en/open_topic.png" height="25" alt="{% trans "Open topic" %}" />
66
<a href="{% url pybb_close_topic topic.id %}">
67
<img src="{{MEDIA_URL}}/forum/img/en/close_topic.png" height="25" alt ="{% trans "Close Topic" %}" />
73
{% if user.is_authenticated %}
75
<a href="{% url pybb_delete_subscription topic.id %}?from_topic">
76
<img src="{{MEDIA_URL}}/forum/img/en/unsubscribe.png" height="25" alt ="{% trans "Unsubscribe" %}" />
79
<a href="{% url pybb_add_subscription topic.id %}">
80
<img src="{{MEDIA_URL}}/forum/img/en/subscribe.png" height="25" alt="{% trans "Subscribe" %}" /></a>
20
<h1>Topic: {{ topic }}</h1>
21
<div class="blogEntry">
22
<a href="{% url 'pybb_index' %}">Forums</a> »
23
{% pybb_link topic.forum.category %} »
24
<a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> »
27
<div class="posRight">
30
<a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
31
<img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
32
<span class="middle">{% trans "Unstick Topic" %}</span>
35
<a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
36
<img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
37
<span class="middle">{% trans "Stick Topic" %}</span>
41
<a class="button" href="{% url 'pybb_open_topic' topic.id %}">
42
<img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
43
<span class="middle">{% trans "Open Topic" %}</span>
46
<a class="button" href="{% url 'pybb_close_topic' topic.id %}">
47
<img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
48
<span class="middle">{% trans "Close Topic" %}</span>
52
{% if user.is_authenticated %}
54
<a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
55
<img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
56
<span class="middle">{% trans "Unsubscribe" %}</span>
59
<a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
60
<img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
61
<span class="middle">{% trans "Subscribe" %}</span>
64
<a class="button" href="{% url 'pybb_add_post' topic.id %}">
65
<img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
66
<span class="middle">{% trans "New Reply" %}</span>
70
{% pybb_pagination _('Posts') %}
74
{% ifnotequal first_post posts.0 %}
75
{% with first_post as post %}
76
{% trans "First Post" %}:
81
{{ post.user|user_link }}<br />
82
{% if post.user.wlprofile_extras.avatar %}
83
<a href="{% url 'profile_view' post.user %}">
84
<img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
87
<div class="authorStats">
88
<strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
89
<strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
90
<img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
91
<strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
92
{% if post.user.wlprofile.location %}
93
<strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
95
{% if post.user.wlprofile.get_ggzstats and post.user.wlprofile.get_ggzstats.ranking %}
96
<strong>GGZ ranking:</strong> {{ post.user.wlprofile.get_ggzstats.ranking|floatformat }}<br />
97
<strong>GGZ rating:</strong> {{ post.user.wlprofile.get_ggzstats.rating|floatformat }}<br />
98
<strong>GGZ win:</strong> {{ post.user.wlprofile.get_ggzstats.wins|floatformat }}<br />
99
<strong>GGZ loses:</strong> {{ post.user.wlprofile.get_ggzstats.losses|floatformat }}<br />
104
<a id="post-{{ post.id }}" href="{{post.get_absolute_url}}" title="{% trans "Permalink" %}" class="posRight small permalink"> </a>
105
<span class="small">Posted at: {{ post.created|custom_date:user}}</span>
108
{{ post.body_html|safe }}
111
{% if post.attachment_cache %}
112
{% for attach in post.attachment_cache %}
113
{% trans "Attachment" %}: <a href="{{ attach.get_absolute_url }}">{{ attach.name }}</a> ({{ attach.size_display }})
117
{% if post.updated %}
118
<span class="small">{% trans "Edited" %}: {{ post.updated|custom_date:user|title}}</span>
121
{% if user.is_authenticated %}
122
{% ifequal user.wlprofile.show_signatures 1 %}
123
{% if post.user.wlprofile.signature %}
124
{{ post.user.wlprofile.signature|urlize|linebreaks }}
128
{% if post.user.wlprofile.signature %}
129
{{ post.user.wlprofile.signature|urlize|linebreaks }}
133
<button onclick="window.location.href='#top';" class="posRight">
134
<img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />
135
<span class="middle">{% trans "Top" %}</span>
138
<button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">
139
<img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
140
<span class="middle">{% trans "Quote" %}</span>
142
{% if moderator or post|pybb_posted_by:user %}
143
<button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">
144
<img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
145
<span class="middle">{% trans "Edit" %}</span>
147
{% if moderator or post|pybb_equal_to:last_post %}
148
<button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">
149
<img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
150
<span class="middle">{% trans "Delete" %}</span>
163
<table class="forum">
165
{% for post in posts %}
166
<tr class="{% cycle 'odd' 'even' %}">
168
{{ post.user|user_link }}<br />
169
{% if post.user.wlprofile.avatar %}
170
<a href="{% url 'profile_view' post.user %}">
171
<img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
174
<div class="authorStats">
175
<strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
176
<strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
177
<img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
178
<strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
179
{% if post.user.wlprofile.location %}
180
<strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
182
{% if post.user.wlprofile.get_ggzstats and post.user.wlprofile.get_ggzstats.ranking %}
183
<strong>GGZ ranking:</strong> {{ post.user.wlprofile.get_ggzstats.ranking|floatformat }}<br />
184
<strong>GGZ rating:</strong> {{ post.user.wlprofile.get_ggzstats.rating|floatformat }}<br />
185
<strong>GGZ win:</strong> {{ post.user.wlprofile.get_ggzstats.wins|floatformat }}<br />
186
<strong>GGZ loses:</strong> {{ post.user.wlprofile.get_ggzstats.losses|floatformat }}<br />
191
<a id="post-{{ post.id }}" href="{{post.get_absolute_url}}" title="{% trans "Permalink" %}" class="posRight small permalink"> </a>
192
<span class="small">Posted at: {{ post.created|custom_date:user}}</span>
195
{{ post.body_html|safe }}
198
{% if post.attachment_cache %}
199
{% for attach in post.attachment_cache %}
200
{% trans "Attachment" %}: <a href="{{ attach.get_absolute_url }}">{{ attach.name }}</a> ({{ attach.size_display }})
204
{% if post.updated %}
205
<span class="small">{% trans "Edited" %}: {{ post.updated|custom_date:user|title}}</span>
208
{% if user.is_authenticated %}
209
{% ifequal user.wlprofile.show_signatures 1 %}
210
{% if post.user.wlprofile.signature %}
211
{{ post.user.wlprofile.signature|urlize|linebreaks }}
215
{% if post.user.wlprofile.signature %}
216
{{ post.user.wlprofile.signature|urlize|linebreaks }}
220
<a class="button posRight" href="#top">
221
<img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />
222
<span class="middle">{% trans "Top" %}</span>
225
<a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
226
<img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
227
<span class="middle">{% trans "Quote" %}</span>
229
{% if moderator or post|pybb_posted_by:user %}
230
<a class="button" href="{% url 'pybb_edit_post' post.id %}">
231
<img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
232
<span class="middle">{% trans "Edit" %}</span>
234
{% if moderator or post|pybb_equal_to:last_post %}
235
<a class="button" href="{% url 'pybb_delete_post' post.id %}">
236
<img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
237
<span class="middle">{% trans "Delete" %}</span>
251
<div class="posRight">
253
{% if topic.sticky %}
254
<a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
255
<img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
256
<span class="middle">{% trans "Unstick Topic" %}</span>
259
<a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
260
<img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
261
<span class="middle">{% trans "Stick Topic" %}</span>
264
{% if topic.closed %}
265
<a class="button" href="{% url 'pybb_open_topic' topic.id %}">
266
<img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
267
<span class="middle">{% trans "Open Topic" %}</span>
270
<a class="button" href="{% url 'pybb_close_topic' topic.id %}">
271
<img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
272
<span class="middle">{% trans "Close Topic" %}</span>
276
{% if user.is_authenticated %}
278
<a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
279
<img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
280
<span class="middle">{% trans "Unsubscribe" %}</span>
283
<a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
284
<img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
285
<span class="middle">{% trans "Subscribe" %}</span>
288
<a class="button" href="{% url 'pybb_add_post' topic.id %}">
289
<img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
290
<span class="middle">{% trans "New Reply" %}</span>
294
{% pybb_pagination _('Posts') %}
86
298
{% if user.is_authenticated %}
87
{% if not topic.closed %}
90
<div class="box_item_model border">
91
{% include "pybb/inlines/add_post_form.html" %}
299
{% if not topic.closed %}
300
{% include "pybb/inlines/add_post_form.html" %}