~widelands-dev/widelands-website/django_staticfiles

« back to all changes in this revision

Viewing changes to templates/pybb/topic.html

  • Committer: franku
  • Date: 2018-11-22 11:08:51 UTC
  • Revision ID: somal@arcor.de-20181122110851-77riof0o4dx2zcm6
split user uploaded content from static content

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
{% load wlprofile_extras %}
7
7
{% load custom_date %}
8
8
{% load pagination_tags %}
 
9
{% load static %}
9
10
 
10
11
{% block title %}
11
12
{{ topic.name }} - {{ topic.forum.name }} - {{ block.super }}
38
39
                <div class="posRight">
39
40
                {% if moderator %}
40
41
                        <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
41
 
                                <img src="{{ MEDIA_URL }}forum/img/topic_show.png" alt ="" class="middle" />
 
42
                                <img src="{% static 'forum/img/topic_show.png' %}" alt ="" class="middle" />
42
43
                                <span class="middle">{% trans "Toggle Visibility" %}</span>
43
44
                        </a>
44
45
                {% endif %}
46
47
                <div class="posRight">
47
48
                {% if moderator %}
48
49
                        <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
49
 
                                <img src="{{ MEDIA_URL }}forum/img/topic_hide.png" alt ="" class="middle" />
 
50
                                <img src="{% static 'forum/img/topic_hide.png' %}" alt ="" class="middle" />
50
51
                                <span class="middle">{% trans "Toggle Visibility" %}</span>
51
52
                        </a>
52
53
                        {% if topic.sticky %}
53
54
                        <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
54
 
                                <img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
 
55
                                <img src="{% static 'forum/img/unstick.png' %}" alt ="" class="middle" />
55
56
                                <span class="middle">{% trans "Unstick Topic" %}</span>
56
57
                        </a>
57
58
                        {% else %}
58
59
                        <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
59
 
                                <img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
 
60
                                <img src="{% static 'forum/img/sticky.png' %}" alt ="" class="middle" />
60
61
                                <span class="middle">{% trans "Stick Topic" %}</span>
61
62
                        </a>
62
63
                        {% endif %}
63
64
                        {% if topic.closed %}
64
65
                        <a class="button" href="{% url 'pybb_open_topic' topic.id %}">
65
 
                                <img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
 
66
                                <img src="{% static 'forum/img/open.png' %}" alt ="" class="middle" />
66
67
                                <span class="middle">{% trans "Open Topic" %}</span>
67
68
                        </a>
68
69
                        {% else %}
69
70
                        <a class="button" href="{% url 'pybb_close_topic' topic.id %}">
70
 
                                <img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
 
71
                                <img src="{% static 'forum/img/closed.png' %}" alt ="" class="middle" />
71
72
                                <span class="middle">{% trans "Close Topic" %}</span>
72
73
                        </a>
73
74
                        {% endif %}
75
76
                {% if user.is_authenticated %}
76
77
                        {% if subscribed %}
77
78
                        <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
78
 
                                <img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
 
79
                                <img src="{% static 'forum/img/unsubscribe.png' %}" alt ="" class="middle" />
79
80
                                <span class="middle">{% trans "Unsubscribe" %}</span>
80
81
                        </a>
81
82
                        {% else %}
82
83
                        <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
83
 
                                <img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
 
84
                                <img src="{% static 'forum/img/subscribe.png' %}" alt ="" class="middle" />
84
85
                                <span class="middle">{% trans "Subscribe" %}</span>
85
86
                        </a>
86
87
                        {% endif %}
87
88
                        <a class="button" href="{% url 'pybb_add_post' topic.id %}">
88
 
                                <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
 
89
                                <img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
89
90
                                <span class="middle">{% trans "New Reply" %}</span>
90
91
                        </a>
91
92
                {% endif %}
110
111
                                                <div class="authorStats">
111
112
                                                <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
112
113
                                                <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
113
 
                                                <img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
 
114
                                                <img src="{% static 'img/' %}{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
114
115
                                                <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
115
116
                                                {% if post.user.wlprofile.location %}
116
117
                                                <strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
148
149
                                                {% endif %}
149
150
 
150
151
                                                <button onclick="window.location.href='#top';" class="posRight">
151
 
                                                        <img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />
 
152
                                                        <img src="{% static 'forum/img/top.png' %}" alt ="" class="middle" />
152
153
                                                        <span class="middle">{% trans "Top" %}</span>
153
154
                                                </button>
154
155
 
155
156
                                                <button onclick="window.location.href='{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}';">
156
 
                                                        <img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
 
157
                                                        <img src="{% static 'forum/img/quote.png' %}" alt ="" class="middle" />
157
158
                                                        <span class="middle">{% trans "Quote" %}</span>
158
159
                                                </button>
159
160
                                                {% if moderator or post|pybb_posted_by:user %}
160
161
                                                        <button onclick="window.location.href='{% url 'pybb_edit_post' post.id %}';">
161
 
                                                                <img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
 
162
                                                                <img src="{% static 'forum/img/edit.png' %}" alt ="" class="middle" />
162
163
                                                                <span class="middle">{% trans "Edit" %}</span>
163
164
                                                        </button>
164
165
                                                        {% if moderator or post|pybb_equal_to:last_post %}
165
166
                                                        <button onclick="window.location.href='{% url 'pybb_delete_post' post.id %}';">
166
 
                                                                <img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
 
167
                                                                <img src="{% static 'forum/img/delete.png' %}" alt ="" class="middle" />
167
168
                                                                <span class="middle">{% trans "Delete" %}</span>
168
169
                                                        </button>
169
170
                                                        {% endif %}
195
196
                                                <div class="authorStats">
196
197
                                                <strong>Joined:</strong> {{ post.user.date_joined|custom_date:user|title }}<br />
197
198
                                                <strong>Posts:</strong> {{ post.user.wlprofile.post_count }}<br />
198
 
                                                <img src="{{ MEDIA_URL }}img/{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
 
199
                                                <img src="{% static 'img/'%}{{ post.user.wlprofile.user_status.image }}" alt="Ranking" /><br />
199
200
                                                <strong>{{ post.user.wlprofile.user_status.text }}</strong><br />
200
201
                                                {% if post.user.wlprofile.location %}
201
202
                                                <strong>Location:</strong> {{ post.user.wlprofile.location }}<br />
233
234
                                                {% endif %}
234
235
 
235
236
                                                <a class="button posRight" href="#top">
236
 
                                                        <img src="{{ MEDIA_URL }}forum/img/top.png" alt ="" class="middle" />
 
237
                                                        <img src="{% static 'forum/img/top.png' %}" alt ="" class="middle" />
237
238
                                                        <span class="middle">{% trans "Top" %}</span>
238
239
                                                </a>
239
240
 
240
241
                                                <a class="button" href="{% url 'pybb_add_post' topic.id %}?quote_id={{ post.id }}">
241
 
                                                        <img src="{{ MEDIA_URL }}forum/img/quote.png" alt ="" class="middle" />
 
242
                                                        <img src="{% static 'forum/img/quote.png' %}" alt ="" class="middle" />
242
243
                                                        <span class="middle">{% trans "Quote" %}</span>
243
244
                                                </a>
244
245
                                                {% if moderator or post|pybb_posted_by:user %}
245
246
                                                        <a class="button" href="{% url 'pybb_edit_post' post.id %}">
246
 
                                                                <img src="{{ MEDIA_URL }}forum/img/edit.png" alt ="" class="middle" />
 
247
                                                                <img src="{% static 'forum/img/edit.png' %}" alt ="" class="middle" />
247
248
                                                                <span class="middle">{% trans "Edit" %}</span>
248
249
                                                        </a>
249
250
                                                        {% if moderator or post|pybb_equal_to:last_post %}
250
251
                                                        <a class="button" href="{% url 'pybb_delete_post' post.id %}">
251
 
                                                                <img src="{{ MEDIA_URL }}forum/img/delete.png" alt ="" class="middle" />
 
252
                                                                <img src="{% static 'forum/img/delete.png' %}" alt ="" class="middle" />
252
253
                                                                <span class="middle">{% trans "Delete" %}</span>
253
254
                                                        </a>
254
255
                                                        {% endif %}
269
270
                        <div class="posRight">
270
271
                        {% if moderator %}
271
272
                        <a class="button" href="{% url 'pybb_toggle_hid_topic' topic.id %}">
272
 
                                        <img src="{{ MEDIA_URL }}forum/img/topic_hide.png" alt ="" class="middle" />
 
273
                                        <img src="{% static 'forum/img/topic_hide.png' %}" alt ="" class="middle" />
273
274
                                        <span class="middle">{% trans "Toggle Visibility" %}</span>
274
275
                                </a>
275
276
                                {% if topic.sticky %}
276
277
                                <a class="button" href="{% url 'pybb_unstick_topic' topic.id %}">
277
 
                                        <img src="{{ MEDIA_URL }}forum/img/unstick.png" alt ="" class="middle" />
 
278
                                        <img src="{% static 'forum/img/unstick.png' %}" alt ="" class="middle" />
278
279
                                        <span class="middle">{% trans "Unstick Topic" %}</span>
279
280
                                </a>
280
281
                                {% else %}
281
282
                                <a class="button" href="{% url 'pybb_stick_topic' topic.id %}">
282
 
                                        <img src="{{ MEDIA_URL }}forum/img/sticky.png" alt ="" class="middle" />
 
283
                                        <img src="{% static 'forum/img/sticky.png' %}" alt ="" class="middle" />
283
284
                                        <span class="middle">{% trans "Stick Topic" %}</span>
284
285
                                </a>
285
286
                                {% endif %}
286
287
                                {% if topic.closed %}
287
288
                                <a class="button" href="{% url 'pybb_open_topic' topic.id %}">
288
 
                                        <img src="{{ MEDIA_URL }}forum/img/open.png" alt ="" class="middle" />
 
289
                                        <img src="{% static 'forum/img/open.png' %}" alt ="" class="middle" />
289
290
                                        <span class="middle">{% trans "Open Topic" %}</span>
290
291
                                </a>
291
292
                                {% else %}
292
293
                                <a class="button" href="{% url 'pybb_close_topic' topic.id %}">
293
 
                                        <img src="{{ MEDIA_URL }}forum/img/closed.png" alt ="" class="middle" />
 
294
                                        <img src="{% static 'forum/img/closed.png' %}" alt ="" class="middle" />
294
295
                                        <span class="middle">{% trans "Close Topic" %}</span>
295
296
                                </a>
296
297
                                {% endif %}
298
299
                        {% if user.is_authenticated %}
299
300
                                {% if subscribed %}
300
301
                                <a class="button" href="{% url 'pybb_delete_subscription' topic.id %}?from_topic">
301
 
                                        <img src="{{ MEDIA_URL }}forum/img/unsubscribe.png" alt ="" class="middle" />
 
302
                                        <img src="{% static 'forum/img/unsubscribe.png' %}" alt ="" class="middle" />
302
303
                                        <span class="middle">{% trans "Unsubscribe" %}</span>
303
304
                                </a>
304
305
                                {% else %}
305
306
                                <a class="button" href="{% url 'pybb_add_subscription' topic.id %}">
306
 
                                        <img src="{{ MEDIA_URL }}forum/img/subscribe.png" alt ="" class="middle" />
 
307
                                        <img src="{% static 'forum/img/subscribe.png' %}" alt ="" class="middle" />
307
308
                                        <span class="middle">{% trans "Subscribe" %}</span>
308
309
                                </a>
309
310
                                {% endif %}
310
311
                                <a class="button" href="{% url 'pybb_add_post' topic.id %}">
311
 
                                        <img src="{{ MEDIA_URL }}forum/img/send.png" alt ="" class="middle" />
 
312
                                        <img src="{% static 'forum/img/send.png' %}" alt ="" class="middle" />
312
313
                                        <span class="middle">{% trans "New Reply" %}</span>
313
314
                                </a>
314
315
                        {% endif %}