BigW Consortium Gitlab

_destroy.haml 555 Bytes
Newer Older
1 2
- if @project.pages_deployed?
  - if can?(current_user, :remove_pages, @project)
3 4 5 6 7 8 9 10
    .panel.panel-default.panel.panel-danger
      .panel-heading Remove pages
      .errors-holder
      .panel-body
        %p
          Removing the pages will prevent from exposing them to outside world.
        .form-actions
          = link_to 'Remove pages', namespace_project_pages_path(@project.namespace, @project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
11 12
  - else
    .nothing-here-block Only the project owner can remove pages