2014-04-30 17:18:35 -04:00
{% if mod %}
< span class = "controls {% if not post.thread %}op{% endif %}" >
{% if mod|hasPermission(config.mod.delete, board.uri) %}
2015-05-09 21:56:48 -04:00
< a title = "{% trans %}Delete{% endtrans %}" onclick = "if (event.which==2) return true;if (confirm('{% trans %}Are you sure you want to delete this?{% endtrans %}')) document.location='?/{{ secure_link(board.dir ~ 'delete/' ~ post.id) }}{% if post.thread %}&thread={{ post.thread }}{% endif %}';return false;" href = "?/{{ board.dir }}delete/{{ post.id }}{% if post.thread %}&thread={{ post.thread }}{% endif %}" > {{ config.mod.link_delete }}< / a >
2014-04-30 17:18:35 -04:00
{% endif %}
{% if mod|hasPermission(config.mod.deletebyip, board.uri) %}
2015-05-09 21:56:48 -04:00
< a title = "{% trans %}Delete all posts by IP{% endtrans %}" onclick = "if (event.which==2) return true;if (confirm('{% trans %}Are you sure you want to delete all posts by this IP address?{% endtrans %}')) document.location='?/{{ secure_link(board.dir ~ 'deletebyip/' ~ post.id) }}{% if post.thread %}&thread={{ post.thread }}{% endif %}';return false;" href = "?/{{ board.dir }}deletebyip/{{ post.id }}{% if post.thread %}&thread={{ post.thread }}{% endif %}" > {{ config.mod.link_deletebyip }}< / a >
2014-04-30 17:18:35 -04:00
{% endif %}
{% if mod|hasPermission(config.mod.deletebyip_global, board.uri) %}
2015-05-09 21:56:48 -04:00
< a title = "{% trans %}Delete all posts by IP across all boards{% endtrans %}" onclick = "if (event.which==2) return true;if (confirm('{% trans %}Are you sure you want to delete all posts by this IP address, across all boards?{% endtrans %}')) document.location='?/{{ secure_link(board.dir ~ 'deletebyip/' ~ post.id ~ '/global') }}{% if post.thread %}&thread={{ post.thread }}{% endif %}';return false;" href = "?/{{ board.dir }}deletebyip/{{ post.id }}/global{% if post.thread %}&thread={{ post.thread }}{% endif %}" > {{ config.mod.link_deletebyip_global }}< / a >
2014-04-30 17:18:35 -04:00
{% endif %}
{% if mod|hasPermission(config.mod.ban, board.uri) %}
2015-05-09 21:56:48 -04:00
< a title = "{% trans %}Ban{% endtrans %}" href = "?/{{ board.dir }}ban/{{ post.id }}{% if post.thread %}&thread={{ post.thread }}{% endif %}" > {{ config.mod.link_ban }}< / a >
2014-04-30 17:18:35 -04:00
{% endif %}
{% if mod|hasPermission(config.mod.bandelete, board.uri) %}
2015-05-09 21:56:48 -04:00
< a title = "{% trans %}Ban & Delete{% endtrans %}" href = "?/{{ board.dir }}ban&delete/{{ post.id }}{% if post.thread %}&thread={{ post.thread }}{% endif %}" > {{ config.mod.link_bandelete }}< / a >
2014-04-30 17:18:35 -04:00
{% endif %}
{% if not post.thread %}
{% 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 %}
{% 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 %}
{% 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 %}
2014-05-18 21:18:06 -04:00
{% endif %}
2017-05-31 18:37:42 -04: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 %}
2015-04-03 02:56:28 -04:00
{% 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 %}
2014-04-30 17:18:35 -04:00
{% 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 %}
< / span >
{% endif %}