{% if mod %} {% 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) }}  {% endif %} {% 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) }}  {% endif %} {% 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.ban, board.uri) %} {{ config.mod.link_ban }}  {% endif %} {% if mod|hasPermission(config.mod.bandelete, board.uri) %} {{ config.mod.link_bandelete }}  {% endif %} {% if not post.thread %} {% if mod|hasPermission(config.mod.sticky, board.uri) %} {% if post.sticky %} {{ config.mod.link_desticky }}  {% else %} {{ config.mod.link_sticky }}  {% endif %} {% endif %} {% if mod|hasPermission(config.mod.bumplock, board.uri) %} {% if post.sage %} {{ config.mod.link_bumpunlock }}  {% else %} {{ config.mod.link_bumplock }}  {% endif %} {% endif %} {% if mod|hasPermission(config.mod.lock, board.uri) %} {% if post.locked %} {{ config.mod.link_unlock }}  {% else %} {{ config.mod.link_lock }}  {% endif %} {% endif %} {% endif %} {% if mod|hasPermission(config.mod.move, board.uri) %} {% if not post.thread %} {{ config.mod.link_move }}  {% else %} {{ config.mod.link_move }}  {% endif %} {% if mod|hasPermission(config.mod.editpost, board.uri) %} {{ config.mod.link_editpost }}  {% endif %} {% endif %} {% endif %}