mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-30 02:04:35 +01:00
11 lines
693 B
HTML
11 lines
693 B
HTML
{% 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 ) }}
|
|
{% 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 %}
|