Thursday, June 04, 2026 2:33:26 AM
> _destroy_modal.slim
= render "shared/modal", id: "destroy-community-modal", class: "modal-lg", **local_assigns do
  .modal-header.border-danger.bg-danger.bg-opacity-10
    h4.modal-title.text-danger.mb-0
      i.bi.bi-exclamation-triangle.me-2
      | Delete #{current_community.community_name}?
    button.btn-close[
      type="button"
      data-bs-dismiss="modal"
      aria-label="Close"
    ]

  .modal-body
    .alert.alert-danger.border-danger.bg-danger.bg-opacity-10
      h6.text-danger.fw-bold Are you absolutely sure?
      p.mb-0.small
        | This action cannot be undone. This will permanently delete the community and all associated data.

    p.mb-3
      | This will cause Exile Server Manager to leave your Discord server, and remove all data pertaining to
      code.text-danger =< current_community.community_id
      |  including:

    ul.list-unstyled.mb-4
      li.mb-2
        i.bi.bi-x-circle.text-danger.me-2
        | Command configurations
      li.mb-2
        i.bi.bi-x-circle.text-danger.me-2
        | Cooldowns
      li.mb-2
        i.bi.bi-x-circle.text-danger.me-2
        | Notifications
      li.mb-2
        i.bi.bi-x-circle.text-danger.me-2
        | Servers (and their associated data)
      li.mb-2
        i.bi.bi-x-circle.text-danger.me-2
        | Any associated XM8 notification routes

    .alert.alert-info.border-info.bg-info.bg-opacity-10
      p.mb-0.small
        strong Recovery:
        |< If you change your mind, you can re-invite ESM back and this will re-create your community.

  .modal-footer.border-top
    / Mobile
    .row.g-2.w-100.d-flex.d-lg-none
      .col-6
        button.btn.btn-outline-secondary.w-100[
          type="button"
          data-bs-dismiss="modal"
        ] Cancel
      .col-6
        = link_to community_path(current_community.public_id),
            method: :delete,
            class: "btn btn-danger w-100",
            data: {turbo: false}
          i.bi.bi-trash.me-2
          | Delete #{current_community.community_id}

    / Desktop
    .d-none.d-lg-block
      button.btn.btn-outline-secondary.me-3[
        type="button"
        data-bs-dismiss="modal"
      ] Cancel

      = link_to community_path(current_community.public_id),
          method: :delete,
          class: "btn btn-danger",
          data: {turbo: false}
        i.bi.bi-trash.me-2
        | Delete #{current_community.community_id}
All opinions represented herein are my own
- © 2024 - 2026 itsthedevman
- build 4294fb2