Show More
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -338,14 +338,6 b' msgstr "\xd0\x9e\xd1\x82\xd0\xb2\xd0\xb5\xd1\x82\xd0\xb8\xd1\x82\xd1\x8c"' | |||||
338 | msgid " in " |
|
338 | msgid " in " | |
339 | msgstr " Π² " |
|
339 | msgstr " Π² " | |
340 |
|
340 | |||
341 | #: templates/boards/post.html:51 |
|
|||
342 | msgid "Edit" |
|
|||
343 | msgstr "ΠΠ·ΠΌΠ΅Π½ΠΈΡΡ" |
|
|||
344 |
|
||||
345 | #: templates/boards/post.html:53 |
|
|||
346 | msgid "Edit thread" |
|
|||
347 | msgstr "ΠΠ·ΠΌΠ΅Π½ΠΈΡΡ ΡΠ΅ΠΌΡ" |
|
|||
348 |
|
||||
349 | #: templates/boards/post.html:91 |
|
341 | #: templates/boards/post.html:91 | |
350 | msgid "Replies" |
|
342 | msgid "Replies" | |
351 | msgstr "ΠΡΠ²Π΅ΡΡ" |
|
343 | msgstr "ΠΡΠ²Π΅ΡΡ" | |
@@ -535,12 +527,6 b' msgstr "\xd0\xb8\xd0\xbd\xd1\x82\xd0\xb5\xd1\x80\xd0\xb5\xd1\x81\xd0\xbd\xd0\xbe\xd0\xb5"' | |||||
535 | msgid "images" |
|
527 | msgid "images" | |
536 | msgstr "ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΡ" |
|
528 | msgstr "ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΡ" | |
537 |
|
529 | |||
538 | msgid "Delete post" |
|
|||
539 | msgstr "Π£Π΄Π°Π»ΠΈΡΡ ΠΏΠΎΡΡ" |
|
|||
540 |
|
||||
541 | msgid "Delete thread" |
|
|||
542 | msgstr "Π£Π΄Π°Π»ΠΈΡΡ ΡΠ΅ΠΌΡ" |
|
|||
543 |
|
||||
544 | msgid "Messages per day/week/month:" |
|
530 | msgid "Messages per day/week/month:" | |
545 | msgstr "Π‘ΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠΉ Π·Π° Π΄Π΅Π½Ρ/Π½Π΅Π΄Π΅Π»Ρ/ΠΌΠ΅ΡΡΡ:" |
|
531 | msgstr "Π‘ΠΎΠΎΠ±ΡΠ΅Π½ΠΈΠΉ Π·Π° Π΄Π΅Π½Ρ/Π½Π΅Π΄Π΅Π»Ρ/ΠΌΠ΅ΡΡΡ:" | |
546 |
|
532 | |||
@@ -578,15 +564,6 b' msgstr "\xd0\x9d\xd0\xb5\xd0\xba\xd0\xbe\xd1\x82\xd0\xbe\xd1\x80\xd1\x8b\xd0\xb5 \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb\xd1\x8b \xd1\x83\xd0\xb6\xd0\xb5 \xd0\xbf\xd1\x80\xd0\xb8\xd1\x81\xd1\x83\xd1\x82\xd1\x81\xd1\x82\xd0\xb2\xd1\x83\xd1\x8e\xd1\x82 \xd0\xbd\xd0\xb0 \xd0\xb1\xd0\xbe\xd1\x80\xd0\xb4\xd0\xb5."' | |||||
578 | msgid "Do not download URLs" |
|
564 | msgid "Do not download URLs" | |
579 | msgstr "ΠΠ΅ Π·Π°Π³ΡΡΠΆΠ°ΡΡ ΡΡΡΠ»ΠΊΠΈ" |
|
565 | msgstr "ΠΠ΅ Π·Π°Π³ΡΡΠΆΠ°ΡΡ ΡΡΡΠ»ΠΊΠΈ" | |
580 |
|
566 | |||
581 | msgid "Ban and delete" |
|
|||
582 | msgstr "ΠΠ°Π±Π°Π½ΠΈΡΡ ΠΈ ΡΠ΄Π°Π»ΠΈΡΡ" |
|
|||
583 |
|
||||
584 | msgid "Are you sure?" |
|
|||
585 | msgstr "ΠΡ ΡΠ²Π΅ΡΠ΅Π½Ρ?" |
|
|||
586 |
|
||||
587 | msgid "Ban" |
|
|||
588 | msgstr "ΠΠ°Π±Π°Π½ΠΈΡΡ" |
|
|||
589 |
|
||||
590 | msgid "File process mode" |
|
567 | msgid "File process mode" | |
591 | msgstr "Π Π΅ΠΆΠΈΠΌ ΠΎΠ±ΡΠ°Π±ΠΎΡΠΊΠΈ ΡΠ°ΠΉΠ»ΠΎΠ²" |
|
568 | msgstr "Π Π΅ΠΆΠΈΠΌ ΠΎΠ±ΡΠ°Π±ΠΎΡΠΊΠΈ ΡΠ°ΠΉΠ»ΠΎΠ²" | |
592 |
|
569 |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -67,3 +67,24 b' msgstr "\xd0\x92\xd0\xb2\xd0\xb5\xd0\xb4\xd0\xb8\xd1\x82\xd0\xb5 \xd0\xbd\xd0\xb0\xd0\xb7\xd0\xb2\xd0\xb0\xd0\xbd\xd0\xb8\xd0\xb5 \xd1\x81\xd1\x82\xd0\xb8\xd0\xba\xd0\xb5\xd1\x80\xd0\xb0"' | |||||
67 |
|
67 | |||
68 | msgid "Images posted: " |
|
68 | msgid "Images posted: " | |
69 | msgstr "ΠΡΡΠ°Π²Π»Π΅Π½Π½ΡΡ ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠΉ: " |
|
69 | msgstr "ΠΡΡΠ°Π²Π»Π΅Π½Π½ΡΡ ΠΈΠ·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½ΠΈΠΉ: " | |
|
70 | ||||
|
71 | msgid "Ban and delete" | |||
|
72 | msgstr "ΠΠ°Π±Π°Π½ΠΈΡΡ ΠΈ ΡΠ΄Π°Π»ΠΈΡΡ" | |||
|
73 | ||||
|
74 | msgid "Are you sure?" | |||
|
75 | msgstr "ΠΡ ΡΠ²Π΅ΡΠ΅Π½Ρ?" | |||
|
76 | ||||
|
77 | msgid "Ban" | |||
|
78 | msgstr "ΠΠ°Π±Π°Π½ΠΈΡΡ" | |||
|
79 | ||||
|
80 | msgid "Delete post" | |||
|
81 | msgstr "Π£Π΄Π°Π»ΠΈΡΡ ΠΏΠΎΡΡ" | |||
|
82 | ||||
|
83 | msgid "Delete thread" | |||
|
84 | msgstr "Π£Π΄Π°Π»ΠΈΡΡ ΡΠ΅ΠΌΡ" | |||
|
85 | ||||
|
86 | msgid "Edit" | |||
|
87 | msgstr "ΠΠ·ΠΌΠ΅Π½ΠΈΡΡ" | |||
|
88 | ||||
|
89 | msgid "Edit thread" | |||
|
90 | msgstr "ΠΠ·ΠΌΠ΅Π½ΠΈΡΡ ΡΠ΅ΠΌΡ" |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -338,14 +338,6 b' msgstr "\xd0\x92\xd1\x96\xd0\xb4\xd0\xbf\xd0\xbe\xd0\xb2\xd1\x96\xd1\x81\xd1\x82\xd0\xb8"' | |||||
338 | msgid " in " |
|
338 | msgid " in " | |
339 | msgstr " Ρ " |
|
339 | msgstr " Ρ " | |
340 |
|
340 | |||
341 | #: templates/boards/post.html:51 |
|
|||
342 | msgid "Edit" |
|
|||
343 | msgstr "ΠΠΌΡΠ½ΠΈΡΠΈ" |
|
|||
344 |
|
||||
345 | #: templates/boards/post.html:53 |
|
|||
346 | msgid "Edit thread" |
|
|||
347 | msgstr "ΠΠΌΡΠ½ΠΈΡΠΈ Π½ΠΈΡΠΊΡ" |
|
|||
348 |
|
||||
349 | #: templates/boards/post.html:91 |
|
341 | #: templates/boards/post.html:91 | |
350 | msgid "Replies" |
|
342 | msgid "Replies" | |
351 | msgstr "ΠΡΠ΄ΠΏΠΎΠ²ΡΠ΄Ρ" |
|
343 | msgstr "ΠΡΠ΄ΠΏΠΎΠ²ΡΠ΄Ρ" | |
@@ -535,12 +527,6 b' msgstr "\xd1\x86\xd1\x96\xd0\xba\xd0\xb0\xd0\xb2\xd0\xb5"' | |||||
535 | msgid "images" |
|
527 | msgid "images" | |
536 | msgstr "ΠΏΡΡΠΊΡΡΠΈ" |
|
528 | msgstr "ΠΏΡΡΠΊΡΡΠΈ" | |
537 |
|
529 | |||
538 | msgid "Delete post" |
|
|||
539 | msgstr "ΠΠΈΠ΄Π°Π»ΠΈΡΠΈ ΠΏΠΎΠ²ΡΠ΄ΠΎΠΌΠ»Π΅Π½Π½Ρ" |
|
|||
540 |
|
||||
541 | msgid "Delete thread" |
|
|||
542 | msgstr "ΠΠΈΡΠ²Π°ΡΠΈ Π½ΠΈΡΠΊΡ" |
|
|||
543 |
|
||||
544 | msgid "Messages per day/week/month:" |
|
530 | msgid "Messages per day/week/month:" | |
545 | msgstr "ΠΠΎΠ²ΡΠ΄ΠΎΠΌΠ»Π΅Π½Ρ Π·Π° Π΄Π΅Π½Ρ/ΡΠΈΠΆΠ΄Π΅Π½Ρ/ΡΠΈΠΆΠΌΡΡΡΡΡ:" |
|
531 | msgstr "ΠΠΎΠ²ΡΠ΄ΠΎΠΌΠ»Π΅Π½Ρ Π·Π° Π΄Π΅Π½Ρ/ΡΠΈΠΆΠ΄Π΅Π½Ρ/ΡΠΈΠΆΠΌΡΡΡΡΡ:" | |
546 |
|
532 | |||
@@ -578,15 +564,6 b' msgstr "\xd0\x94\xd0\xb5\xd1\x8f\xd0\xba\xd1\x96 \xd1\x84\xd0\xb0\xd0\xb9\xd0\xbb\xd0\xb8 \xd0\xb2\xd0\xb6\xd0\xb5 \xd1\x94 \xd0\xbd\xd0\xb0 \xd0\xb4\xd0\xbe\xd1\x88\xd1\x86\xd1\x96."' | |||||
578 | msgid "Do not download URLs" |
|
564 | msgid "Do not download URLs" | |
579 | msgstr "ΠΠ΅ Π·Π°Π²Π°Π½ΡΠ°ΠΆΡΠ²Π°ΡΠΈ ΠΏΠΎΡΠΈΠ»Π°Π½Π½Ρ" |
|
565 | msgstr "ΠΠ΅ Π·Π°Π²Π°Π½ΡΠ°ΠΆΡΠ²Π°ΡΠΈ ΠΏΠΎΡΠΈΠ»Π°Π½Π½Ρ" | |
580 |
|
566 | |||
581 | msgid "Ban and delete" |
|
|||
582 | msgstr "ΠΠ°Π±Π»ΠΎΠΊΡΠ²Π°ΡΠΈ ΠΉ Π²ΠΈΠ΄Π°Π»ΠΈΡΠΈ" |
|
|||
583 |
|
||||
584 | msgid "Are you sure?" |
|
|||
585 | msgstr "Π§ΠΈ Π²ΠΈ ΠΏΠ΅Π²Π½Ρ?" |
|
|||
586 |
|
||||
587 | msgid "Ban" |
|
|||
588 | msgstr "ΠΠ°Π±Π»ΠΎΠΊΡΠ²Π°ΡΠΈ" |
|
|||
589 |
|
||||
590 | msgid "File process mode" |
|
567 | msgid "File process mode" | |
591 | msgstr "Π Π΅ΠΆΠΈΠΌ ΠΎΠ±ΡΠΎΠ±ΠΊΠΈ ΡΠ°ΠΉΠ»ΡΠ²" |
|
568 | msgstr "Π Π΅ΠΆΠΈΠΌ ΠΎΠ±ΡΠΎΠ±ΠΊΠΈ ΡΠ°ΠΉΠ»ΡΠ²" | |
592 |
|
569 |
1 | NO CONTENT: modified file, binary diff hidden |
|
NO CONTENT: modified file, binary diff hidden |
@@ -67,3 +67,24 b' msgstr "\xd0\x92\xd0\xb2\xd0\xb5\xd0\xb4\xd1\x96\xd1\x82\xd1\x8c \xd0\xbd\xd0\xb0\xd0\xb7\xd0\xb2\xd1\x83 \xd1\x81\xd1\x82\xd1\x96\xd0\xba\xd0\xb5\xd1\x80\xd0\xb0"' | |||||
67 |
|
67 | |||
68 | msgid "Images posted: " |
|
68 | msgid "Images posted: " | |
69 | msgstr "ΠΡΡΠ°Π²Π»Π΅Π½ΠΈΡ Π·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½Ρ: " |
|
69 | msgstr "ΠΡΡΠ°Π²Π»Π΅Π½ΠΈΡ Π·ΠΎΠ±ΡΠ°ΠΆΠ΅Π½Ρ: " | |
|
70 | ||||
|
71 | msgid "Ban and delete" | |||
|
72 | msgstr "ΠΠ°Π±Π»ΠΎΠΊΡΠ²Π°ΡΠΈ ΠΉ Π²ΠΈΠ΄Π°Π»ΠΈΡΠΈ" | |||
|
73 | ||||
|
74 | msgid "Are you sure?" | |||
|
75 | msgstr "Π§ΠΈ Π²ΠΈ ΠΏΠ΅Π²Π½Ρ?" | |||
|
76 | ||||
|
77 | msgid "Ban" | |||
|
78 | msgstr "ΠΠ°Π±Π»ΠΎΠΊΡΠ²Π°ΡΠΈ" | |||
|
79 | ||||
|
80 | msgid "Delete post" | |||
|
81 | msgstr "ΠΠΈΠ΄Π°Π»ΠΈΡΠΈ ΠΏΠΎΠ²ΡΠ΄ΠΎΠΌΠ»Π΅Π½Π½Ρ" | |||
|
82 | ||||
|
83 | msgid "Delete thread" | |||
|
84 | msgstr "ΠΠΈΡΠ²Π°ΡΠΈ Π½ΠΈΡΠΊΡ" | |||
|
85 | ||||
|
86 | msgid "Edit" | |||
|
87 | msgstr "ΠΠΌΡΠ½ΠΈΡΠΈ" | |||
|
88 | ||||
|
89 | msgid "Edit thread" | |||
|
90 | msgstr "ΠΠΌΡΠ½ΠΈΡΠΈ Π½ΠΈΡΠΊΡ" |
@@ -362,3 +362,5 b' class Post(models.Model, Viewable):' | |||||
362 | def has_ip(self): |
|
362 | def has_ip(self): | |
363 | return self.poster_ip != NO_IP |
|
363 | return self.poster_ip != NO_IP | |
364 |
|
364 | |||
|
365 | def has_global_id(self): | |||
|
366 | return self.global_id_id is not None |
@@ -203,6 +203,93 b' function addContextMenu() {' | |||||
203 | }; |
|
203 | }; | |
204 | } |
|
204 | } | |
205 | }); |
|
205 | }); | |
|
206 | ||||
|
207 | $.contextMenu({ | |||
|
208 | selector: '.post .moderation-menu', | |||
|
209 | trigger: 'left', | |||
|
210 | build: function($trigger, e) { | |||
|
211 | var canEditPost = PERMS['change_post']; | |||
|
212 | var canDeletePost = PERMS['delete_post']; | |||
|
213 | var canEditThread = PERMS['change_thread']; | |||
|
214 | var canDeleteThread = PERMS['delete_thread']; | |||
|
215 | ||||
|
216 | var post = $trigger.parents('.post'); | |||
|
217 | ||||
|
218 | var isOpening = post.data('opening') === 'True'; | |||
|
219 | var threadId = post.data('thread-id'); | |||
|
220 | var hasGlobalId = post.data('has-global-id') === 'True'; | |||
|
221 | ||||
|
222 | var posterIp = $trigger.siblings('.pub_time').attr('title'); | |||
|
223 | var hasIp = posterIp != null; | |||
|
224 | ||||
|
225 | var postId = post.attr('id'); | |||
|
226 | ||||
|
227 | return { | |||
|
228 | items: { | |||
|
229 | edit: { | |||
|
230 | name: gettext('Edit'), | |||
|
231 | callback: function(key, opt) { | |||
|
232 | window.location = '/admin/boards/post/' + postId + '/change/'; | |||
|
233 | }, | |||
|
234 | visible: canEditPost | |||
|
235 | }, | |||
|
236 | deletePost: { | |||
|
237 | name: gettext('Delete post'), | |||
|
238 | callback: function(key, opt) { | |||
|
239 | window.location = '/admin/boards/post/' + postId + '/delete/'; | |||
|
240 | }, | |||
|
241 | visible: !isOpening && canDeletePost | |||
|
242 | }, | |||
|
243 | editThread: { | |||
|
244 | name: gettext('Edit thread'), | |||
|
245 | callback: function(key, opt) { | |||
|
246 | window.location = '/admin/boards/thread/' + threadId + '/change/'; | |||
|
247 | }, | |||
|
248 | visible: isOpening && canEditThread | |||
|
249 | }, | |||
|
250 | deleteThread: { | |||
|
251 | name: gettext('Delete thread'), | |||
|
252 | callback: function(key, opt) { | |||
|
253 | window.location = '/admin/boards/thread/' + threadId + '/delete/'; | |||
|
254 | }, | |||
|
255 | visible: isOpening && canDeleteThread | |||
|
256 | }, | |||
|
257 | findByIp: { | |||
|
258 | name: 'IP = ' + posterIp, | |||
|
259 | callback: function(key, opt) { | |||
|
260 | window.location = '/feed/?ip=' + posterIp; | |||
|
261 | }, | |||
|
262 | visible: hasIp | |||
|
263 | }, | |||
|
264 | raw: { | |||
|
265 | name: 'RAW', | |||
|
266 | callback: function(key, opt) { | |||
|
267 | window.location = '/post_xml/' + postId; | |||
|
268 | }, | |||
|
269 | visible: hasGlobalId | |||
|
270 | }, | |||
|
271 | ban: { | |||
|
272 | name: gettext('Ban'), | |||
|
273 | callback: function(key, opt) { | |||
|
274 | if (confirm(gettext('Are you sure?'))) { | |||
|
275 | window.location = '/utils?method=ban&post_id=' + postId; | |||
|
276 | } | |||
|
277 | }, | |||
|
278 | visible: hasIp | |||
|
279 | }, | |||
|
280 | banAndDelete: { | |||
|
281 | name: gettext('Ban and delete'), | |||
|
282 | callback: function(key, opt) { | |||
|
283 | if (confirm(gettext('Are you sure?'))) { | |||
|
284 | window.location = '/utils?method=ban_and_delete&post_id=' + postId; | |||
|
285 | } | |||
|
286 | }, | |||
|
287 | visible: hasIp && canDeletePost | |||
|
288 | } | |||
|
289 | } | |||
|
290 | }; | |||
|
291 | } | |||
|
292 | }); | |||
206 | } |
|
293 | } | |
207 |
|
294 | |||
208 | $( document ).ready(function() { |
|
295 | $( document ).ready(function() { |
@@ -4,7 +4,12 b'' | |||||
4 | {% get_current_language as LANGUAGE_CODE %} |
|
4 | {% get_current_language as LANGUAGE_CODE %} | |
5 |
|
5 | |||
6 | {% autoescape off %} |
|
6 | {% autoescape off %} | |
7 | <div class="{{ css_class }}" id="{{ post.id }}" data-uid="{{ post.uid }}" {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> |
|
7 | <div class="{{ css_class }}" id="{{ post.id }}" | |
|
8 | data-uid="{{ post.uid }}" | |||
|
9 | data-has-global-id="{{ post.has_global_id }}" | |||
|
10 | data-thread-id="{{ thread.id }}" | |||
|
11 | data-opening="{{ is_opening }}" | |||
|
12 | {% if tree_depth %}style="margin-left: {{ tree_depth }}em;"{% endif %}> | |||
8 | <div class="post-info"> |
|
13 | <div class="post-info"> | |
9 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> |
|
14 | <a class="post_id" href="{{ post.get_absolute_url }}">#{{ post.id }}</a> | |
10 | {% if is_opening %} |
|
15 | {% if is_opening %} | |
@@ -53,86 +58,6 b'' | |||||
53 |
|
58 | |||
54 | {% if perms.boards.change_post or perms.boards.delete_post or perms.boards.change_thread or perms_boards.delete_thread %} |
|
59 | {% if perms.boards.change_post or perms.boards.delete_post or perms.boards.change_thread or perms_boards.delete_thread %} | |
55 | <a class="moderation-menu" href="#">π</a> |
|
60 | <a class="moderation-menu" href="#">π</a> | |
56 | <script> |
|
|||
57 | $.contextMenu({ |
|
|||
58 | selector: '#{{ post.id }} .moderation-menu', |
|
|||
59 | trigger: 'left', |
|
|||
60 | build: function($trigger, e) { |
|
|||
61 | var canEditPost = PERMS['change_post']; |
|
|||
62 | var canDeletePost = PERMS['delete_post']; |
|
|||
63 | var canEditThread = PERMS['change_thread']; |
|
|||
64 | var canDeleteThread = PERMS['delete_thread']; |
|
|||
65 |
|
||||
66 | var isOpening = '{{ is_opening }}' === 'True'; |
|
|||
67 | var hasIp = '{{ post.has_ip }}' === 'True'; |
|
|||
68 |
|
||||
69 | return { |
|
|||
70 | items: { |
|
|||
71 | edit: { |
|
|||
72 | name: '{% trans "Edit" %}', |
|
|||
73 | callback: function(key, opt) { |
|
|||
74 | window.location = '{% url 'admin:boards_post_change' post.id %}'; |
|
|||
75 | }, |
|
|||
76 | visible: canEditPost |
|
|||
77 | }, |
|
|||
78 | deletePost: { |
|
|||
79 | name: '{% trans "Delete post" %}', |
|
|||
80 | callback: function(key, opt) { |
|
|||
81 | window.location = '{% url 'admin:boards_post_delete' post.id %}'; |
|
|||
82 | }, |
|
|||
83 | visible: !isOpening && canDeletePost |
|
|||
84 | }, |
|
|||
85 | editThread: { |
|
|||
86 | name: '{% trans "Edit thread" %}', |
|
|||
87 | callback: function(key, opt) { |
|
|||
88 | window.location = '{% url 'admin:boards_thread_change' thread.id %}'; |
|
|||
89 | }, |
|
|||
90 | visible: isOpening && canEditThread |
|
|||
91 | }, |
|
|||
92 | deleteThread: { |
|
|||
93 | name: '{% trans "Delete thread" %}', |
|
|||
94 | callback: function(key, opt) { |
|
|||
95 | window.location = '{% url 'admin:boards_thread_delete' thread.id %}'; |
|
|||
96 | }, |
|
|||
97 | visible: isOpening && canDeleteThread |
|
|||
98 | }, |
|
|||
99 | findByIp: { |
|
|||
100 | name: 'IP = {{ post.poster_ip }}', |
|
|||
101 | callback: function(key, opt) { |
|
|||
102 | window.location = '{% url "feed" %}?ip={{ post.poster_ip }}'; |
|
|||
103 | }, |
|
|||
104 | visible: hasIp |
|
|||
105 | }, |
|
|||
106 | raw: { |
|
|||
107 | name: 'RAW', |
|
|||
108 | callback: function(key, opt) { |
|
|||
109 | window.location = '{% url 'post_sync_data' post.id %}'; |
|
|||
110 | }, |
|
|||
111 | visible: {% if post.global_id_id %}true{% else %}false{% endif %} |
|
|||
112 | }, |
|
|||
113 | ban: { |
|
|||
114 | name: '{% trans "Ban" %}', |
|
|||
115 | callback: function(key, opt) { |
|
|||
116 | if (confirm('{% trans "Are you sure?" %}')) { |
|
|||
117 | window.location = '{% url 'utils' %}?method=ban&post_id={{ post.id }}'; |
|
|||
118 | } |
|
|||
119 | }, |
|
|||
120 | visible: hasIp |
|
|||
121 | }, |
|
|||
122 | banAndDelete: { |
|
|||
123 | name: '{% trans "Ban and delete" %}', |
|
|||
124 | callback: function(key, opt) { |
|
|||
125 | if (confirm('{% trans "Are you sure?" %}')) { |
|
|||
126 | window.location = '{% url 'utils' %}?method=ban_and_delete&post_id={{ post.id }}'; |
|
|||
127 | } |
|
|||
128 | }, |
|
|||
129 | visible: hasIp && canDeletePost |
|
|||
130 | } |
|
|||
131 | } |
|
|||
132 | }; |
|
|||
133 | } |
|
|||
134 | }); |
|
|||
135 | </script> |
|
|||
136 | {% endif %} |
|
61 | {% endif %} | |
137 | </div> |
|
62 | </div> | |
138 | {% for file in post.attachments.all %} |
|
63 | {% for file in post.attachments.all %} |
General Comments 0
You need to be logged in to leave comments.
Login now