Welcome to mirror list, hosted at ThFree Co, Russian Federation.

_destroy.haml « pages « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 7d6c30b7f8d29d5d0ff5bb20f9ef5eb7520c91f2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- if @project.pages_deployed?
  - if can?(current_user, :remove_pages, @project)
    .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', project_pages_path(@project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
  - else
    .nothing-here-block Only the project owner can remove pages