2014-04-30 21:18:35 +00:00
{% if mod %}
< span class = "controls {% if not post.thread %}op{% endif %}" >
2017-06-09 01:59:18 +00:00
{% if not post.shadow %}
{% if mod|hasPermission(config.mod.delete, board.uri) %}
{{ secure_link_confirm(config.mod.link_delete, 'Delete'|trans, 'Are you sure you want to delete this?'|trans, board.dir ~ 'delete/' ~ post.id) }}
2017-06-15 05:16:16 +00:00
{% if mod|hasPermission(config.mod.auto_delete_shadow_post, board.uri) %}
2017-06-15 06:31:54 +00:00
{{ secure_link_confirm(config.mod.link_force_shadow_delete, 'Shadow Delete'|trans, 'Are you sure you want to shadow delete this?'|trans, board.dir ~ 'delete_shadow/' ~ post.id) }}
2017-06-15 05:16:16 +00:00
{% endif %}
2014-04-30 21:18:35 +00:00
{% endif %}
2017-06-09 01:59:18 +00:00
{% if mod|hasPermission(config.mod.deletebyip, board.uri) %}
{{ secure_link_confirm(config.mod.link_deletebyip, 'Delete all posts by IP'|trans, 'Are you sure you want to delete all posts by this IP address?'|trans, board.dir ~ 'deletebyip/' ~ post.id) }}
2014-04-30 21:18:35 +00:00
{% endif %}
2017-06-09 01:59:18 +00:00
{% if mod|hasPermission(config.mod.deletebyip_global, board.uri) %}
{{ secure_link_confirm(config.mod.link_deletebyip_global, 'Delete all posts by IP across all boards'|trans, 'Are you sure you want to delete all posts by this IP address, across all boards?'|trans, board.dir ~ 'deletebyip/' ~ post.id ~ '/global') }}
{% endif %}
{% if mod|hasPermission(config.mod.warning, board.uri) %}
< a title = "{% trans %}Issue Warning{% endtrans %}" href = "?/{{ board.dir }}warning/{{ post.id }}" > {{ config.mod.link_warning }}< / a >
{% endif %}
{% if mod|hasPermission(config.mod.warning, board.uri) and mod|hasPermission(config.mod.delete, board.uri) %}
< a title = "{% trans %}Issue Warning{% endtrans %}" href = "?/{{ board.dir }}warning&delete/{{ post.id }}" > {{ config.mod.link_warningdelete }}< / a >
{% endif %}
{% if mod|hasPermission(config.mod.ban, board.uri) %}
< a title = "{% trans %}Ban{% endtrans %}" href = "?/{{ board.dir }}ban/{{ post.id }}" > {{ config.mod.link_ban }}< / a >
{% endif %}
{% if mod|hasPermission(config.mod.bandelete, board.uri) %}
< a title = "{% trans %}Ban & Delete{% endtrans %}" href = "?/{{ board.dir }}ban&delete/{{ post.id }}" > {{ config.mod.link_bandelete }}< / a >
2014-04-30 21:18:35 +00:00
{% endif %}
{% if not post.thread %}
2017-06-09 01:59:18 +00:00
{% if mod|hasPermission(config.mod.sticky, board.uri) %}
{% if post.sticky %}
< a title = "{% trans %}Make thread not sticky{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'unsticky/' ~ post.id) }}" > {{ config.mod.link_desticky }}< / a >
{% else %}
< a title = "{% trans %}Make thread sticky{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'sticky/' ~ post.id) }}" > {{ config.mod.link_sticky }}< / a >
{% endif %}
2014-04-30 21:18:35 +00:00
{% endif %}
2017-06-09 01:59:18 +00:00
{% if mod|hasPermission(config.mod.merge, board.uri) %}
< a title = "{% trans %}Merge thread with another thread {% endtrans %}" href = "?/{{ board.dir }}merge/{{ post.id }}" > {{ config.mod.link_merge }}< / a >
{% endif %}
{% if mod|hasPermission(config.mod.cycle, board.uri) %}
{% if post.cycle %}
< a title = "{% trans %}Make thread not cycle{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'uncycle/' ~ post.id) }}" > {{ config.mod.link_uncycle }}< / a >
{% else %}
< a title = "{% trans %}Make thread cycle{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'cycle/' ~ post.id) }}" > {{ config.mod.link_cycle }}< / a >
{% endif %}
{% endif %}
{% if mod|hasPermission(config.mod.bumplock, board.uri) %}
{% if post.sage %}
< a title = "{% trans %}Allow thread to be bumped{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'bumpunlock/' ~ post.id) }}" > {{ config.mod.link_bumpunlock }}< / a >
{% else %}
< a title = "{% trans %}Prevent thread from being bumped{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'bumplock/' ~ post.id) }}" > {{ config.mod.link_bumplock }}< / a >
{% endif %}
{% endif %}
{% if mod|hasPermission(config.mod.lock, board.uri) %}
{% if post.locked %}
< a title = "{% trans %}Unlock thread{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'unlock/' ~ post.id) }}" > {{ config.mod.link_unlock }}< / a >
{% else %}
< a title = "{% trans %}Lock thread{% endtrans %}" href = "?/{{ secure_link(board.dir ~ 'lock/' ~ post.id) }}" > {{ config.mod.link_lock }}< / a >
{% endif %}
{% endif %}
2017-12-14 05:30:04 +00:00
{% if mod|hasPermission(config.mod.send_threads_to_archive, board.uri) %}
{{ secure_link_confirm(config.mod.link_send_to_archive, 'Send thread to archive'|trans, 'Are you sure you want to send thread to archive and delete it from the catalog?'|trans, board.dir ~ 'archive_thread/' ~ post.id ) }}
{% endif %}
2017-06-09 01:59:18 +00:00
{% endif %}
{% if mod|hasPermission(config.mod.move, board.uri) %}
{% if not post.thread %}
< a title = "{% trans %}Move thread to another board{% endtrans %}" href = "?/{{ board.dir }}move/{{ post.id }}" > {{ config.mod.link_move }}< / a >
{% else %}
< a title = "{% trans %}Move reply to another board{% endtrans %}" href = "?/{{ board.dir }}move_reply/{{ post.id }}" > {{ config.mod.link_move }}< / a >
{% endif %}
{% endif %}
{% if mod|hasPermission(config.mod.editpost, board.uri) %}
< a title = "{% trans %}Edit post{% endtrans %}" href = "?/{{ board.dir }}edit{% if config.mod.raw_html_default %}_raw{% endif %}/{{ post.id }}" > {{ config.mod.link_editpost }}< / a >
{% endif %}
{% else %}
2017-06-09 10:48:03 +00:00
{% if not post.no_shadow_restore %}
{% if mod|hasPermission(config.mod.restore_shadow_post, board.uri) %}
< a title = "{% trans %}Restore shadow deleted post{% endtrans %}" href = "?/{{ board.dir }}shadow_restore/{{ post.id }}" > {{ config.mod.link_shadow_restore }}< / a >
{% endif %}
{% if mod|hasPermission(config.mod.delete_shadow_post, board.uri) %}
< a title = "{% trans %}Permanent delete shadow deleted post{% endtrans %}" href = "?/{{ board.dir }}shadow_delete/{{ post.id }}" > {{ config.mod.link_shadow_delete }}< / a >
{% endif %}
2015-04-03 06:56:28 +00:00
{% endif %}
2014-04-30 21:18:35 +00:00
{% endif %}
< / span >
{% endif %}