~widelands-dev/widelands-website/trunk

« back to all changes in this revision

Viewing changes to templates/pybb/topic.html

  • Committer: franku
  • Date: 2016-07-02 12:38:06 UTC
  • mfrom: (404.2.56 widelands)
  • Revision ID: somal@arcor.de-20160702123806-q69u3d48s1prrxds
merged the django1_8 branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
{% load pybb_extras %}
3
3
{% load i18n %}
4
4
{% load humanize %}
5
 
{% load wiki %}
6
 
{% load wlprofile %}
 
5
{% load wiki_extras %}
 
6
{% load wlprofile_extras %}
7
7
{% load custom_date %}
8
8
 
9
9
{% block title %}
11
11
{% endblock title %}
12
12
 
13
13
{% block extra_head %}
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}}/" />
 
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}}/" />
16
16
{{ block.super }}
17
17
{% endblock %}
18
18
 
19
19
{% block content %}
20
20
<h1>Topic: {{ topic }}</h1>
21
21
<div class="blogEntry">
22
 
        <a href="{% url pybb_index %}">Forums</a> &#187; 
 
22
        <a href="{% url 'pybb_index' %}">Forums</a> &#187; 
23
23
        {% pybb_link topic.forum.category %} &#187; 
24
24
        <a href="{{ topic.forum.get_absolute_url }}">{{ topic.forum.name }}</a> &#187;
25
25
        {{ topic }}
27
27
        <div class="posRight">
28
28
        {% if moderator %}
29
29
                {% if topic.sticky %}
30
 
                <a class="button" href="{% url pybb_unstick_topic topic.id %}">
 
30
                <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
31
31
                        <img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
32
32
                        <span class="middle">{% trans "Unstick Topic" %}</span>
33
33
                </a>
34
34
                {% else %}
35
 
                <a class="button" href="{% url pybb_stick_topic topic.id %}">
 
35
                <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
36
36
                        <img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
37
37
                        <span class="middle">{% trans "Stick Topic" %}</span>
38
38
                </a>
39
39
                {% endif %}
40
40
                {% if topic.closed %}
41
 
                <a class="button" href="{% url pybb_open_topic topic.id %}">
 
41
                <a class="button" href="{% url 'pybb_open_topic' topic.id %}">
42
42
                        <img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
43
43
                        <span class="middle">{% trans "Open Topic" %}</span>
44
44
                </a>
45
45
                {% else %}
46
 
                <a class="button" href="{% url pybb_close_topic topic.id %}">
 
46
                <a class="button" href="{% url 'pybb_close_topic' topic.id %}">
47
47
                        <img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
48
48
                        <span class="middle">{% trans "Close Topic" %}</span>
49
49
                </a>
51
51
        {% endif %}
52
52
        {% if user.is_authenticated %}
53
53
                {% if subscribed %}
54
 
                <a class="button" href="{% url pybb_delete_subscription topic.id %}?from_topic">
 
54
                <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
55
55
                        <img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
56
56
                        <span class="middle">{% trans "Unsubscribe" %}</span>
57
57
                </a>
58
58
                {% else %}
59
 
                <a class="button" href="{% url pybb_add_subscription topic.id %}">
 
59
                <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
60
60
                        <img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
61
61
                        <span class="middle">{% trans "Subscribe" %}</span>
62
62
                </a>
63
63
                {% endif %}
64
 
                <a class="button" href="{% url pybb_add_post topic.id %}">
 
64
                <a class="button" href="{% url 'pybb_add_post' topic.id %}">
65
65
                        <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
66
66
                        <span class="middle">{% trans "New Reply" %}</span>
67
67
                </a>
79
79
                <tr class="odd">
80
80
                        <td class="author">
81
81
                                {{ post.user|user_link }}<br />
82
 
                                {% if post.user.wlprofile.avatar %}
83
 
                                <a href="{% url profile_view post.user %}">
 
82
                                {% if post.user.wlprofile_extras.avatar %}
 
83
                                <a href="{% url 'profile_view' post.user %}">
84
84
                                        <img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
85
85
                                </a>
86
86
                                {% endif %}
135
135
                                        <span class="middle">{% trans "Top" %}</span>
136
136
                                </button>
137
137
 
138
 
                                <button onclick="window.location.href='{% url pybb_add_post topic.id %}?quote_id={{ post.id }}';">
 
138
                                <button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">
139
139
                                        <img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
140
140
                                        <span class="middle">{% trans "Quote" %}</span>
141
141
                                </button>
142
142
                                {% if moderator or post|pybb_posted_by:user %}
143
 
                                        <button onclick="window.location.href='{% url pybb_edit_post post.id %}';">
 
143
                                        <button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">
144
144
                                                <img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
145
145
                                                <span class="middle">{% trans "Edit" %}</span>
146
146
                                        </button>
147
147
                                        {% if moderator or post|pybb_equal_to:last_post %}
148
 
                                        <button onclick="window.location.href='{% url pybb_delete_post post.id %}';">
 
148
                                        <button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">
149
149
                                                <img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
150
150
                                                <span class="middle">{% trans "Delete" %}</span>
151
151
                                        </button>
167
167
                        <td class="author">
168
168
                                {{ post.user|user_link }}<br />
169
169
                                {% if post.user.wlprofile.avatar %}
170
 
                                <a href="{% url profile_view post.user %}">
 
170
                                <a href="{% url 'profile_view' post.user %}">
171
171
                                        <img src="{{ post.user.wlprofile.avatar.url }}" alt="Avatar" />
172
172
                                </a>
173
173
                                {% endif %}
222
222
                                        <span class="middle">{% trans "Top" %}</span>
223
223
                                </a>
224
224
 
225
 
                                <a class="button" href="{% url pybb_add_post topic.id %}?quote_id={{ post.id }}">
 
225
                                <a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
226
226
                                        <img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
227
227
                                        <span class="middle">{% trans "Quote" %}</span>
228
228
                                </a>
229
229
                                {% if moderator or post|pybb_posted_by:user %}
230
 
                                        <a class="button" href="{% url pybb_edit_post post.id %}">
 
230
                                        <a class="button" href="{% url 'pybb_edit_post' post.id %}">
231
231
                                                <img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
232
232
                                                <span class="middle">{% trans "Edit" %}</span>
233
233
                                        </a>
234
234
                                        {% if moderator or post|pybb_equal_to:last_post %}
235
 
                                        <a class="button" href="{% url pybb_delete_post post.id %}">
 
235
                                        <a class="button" href="{% url 'pybb_delete_post' post.id %}">
236
236
                                                <img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
237
237
                                                <span class="middle">{% trans "Delete" %}</span>
238
238
                                        </a>
251
251
        <div class="posRight">
252
252
        {% if moderator %}
253
253
                {% if topic.sticky %}
254
 
                <a class="button" href="{% url pybb_unstick_topic topic.id %}">
 
254
                <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
255
255
                        <img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
256
256
                        <span class="middle">{% trans "Unstick Topic" %}</span>
257
257
                </a>
258
258
                {% else %}
259
 
                <a class="button" href="{% url pybb_stick_topic topic.id %}">
 
259
                <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
260
260
                        <img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
261
261
                        <span class="middle">{% trans "Stick Topic" %}</span>
262
262
                </a>
263
263
                {% endif %}
264
264
                {% if topic.closed %}
265
 
                <a class="button" href="{% url pybb_open_topic topic.id %}">
 
265
                <a class="button" href="{% url 'pybb_open_topic' topic.id %}">
266
266
                        <img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
267
267
                        <span class="middle">{% trans "Open Topic" %}</span>
268
268
                </a>
269
269
                {% else %}
270
 
                <a class="button" href="{% url pybb_close_topic topic.id %}">
 
270
                <a class="button" href="{% url 'pybb_close_topic' topic.id %}">
271
271
                        <img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
272
272
                        <span class="middle">{% trans "Close Topic" %}</span>
273
273
                </a>
275
275
        {% endif %}
276
276
        {% if user.is_authenticated %}
277
277
                {% if subscribed %}
278
 
                <a class="button" href="{% url pybb_delete_subscription topic.id %}?from_topic">
 
278
                <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
279
279
                        <img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
280
280
                        <span class="middle">{% trans "Unsubscribe" %}</span>
281
281
                </a>
282
282
                {% else %}
283
 
                <a class="button" href="{% url pybb_add_subscription topic.id %}">
 
283
                <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
284
284
                        <img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
285
285
                        <span class="middle">{% trans "Subscribe" %}</span>
286
286
                </a>
287
287
                {% endif %}
288
 
                <a class="button" href="{% url pybb_add_post topic.id %}">
 
288
                <a class="button" href="{% url 'pybb_add_post' topic.id %}">
289
289
                        <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
290
290
                        <span class="middle">{% trans "New Reply" %}</span>
291
291
                </a>