summaryrefslogtreecommitdiff
path: root/templates/post/file_controls.html
diff options
context:
space:
mode:
authorFredrick Brennan <admin@8chan.co>2014-04-30 17:18:35 -0400
committerFredrick Brennan <admin@8chan.co>2014-04-30 17:18:35 -0400
commit042e7b9c598975f876d8a86c8e4242dbf17f7bdf (patch)
treebbe80de76afd68dd3674a85feac7bb593836a4f3 /templates/post/file_controls.html
parent400df0975fc6eb0570ed65706dadc81281f5dc75 (diff)
Deprecate postControls(), per-file deletion and spoilering
Diffstat (limited to 'templates/post/file_controls.html')
-rw-r--r--templates/post/file_controls.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/post/file_controls.html b/templates/post/file_controls.html
new file mode 100644
index 00000000..6855a293
--- /dev/null
+++ b/templates/post/file_controls.html
@@ -0,0 +1,10 @@
+{% if post.files and mod %}
+<span class="controls">
+{% if file.file != 'deleted' and mod|hasPermission(config.mod.deletefile, board.uri) %}
+{{ secure_link_confirm(config.mod.link_deletefile, 'Delete file'|trans, 'Are you sure you want to delete this file?'|trans, board.dir ~ 'deletefile/' ~ post.id ~ '/' ~ loop.index0 ) }}&nbsp;
+{% endif %}
+{% if file.file and file.file != 'deleted' and file.thumb != 'spoiler' and mod|hasPermission(config.mod.spoilerimage, board.uri) %}
+{{ secure_link_confirm(config.mod.link_spoilerimage, 'Spoiler file'|trans, 'Are you sure you want to spoiler this file?'|trans, board.dir ~ 'spoiler/' ~ post.id ~ '/' ~ loop.index0 ) }}
+{% endif %}
+</span>
+{% endif %}