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: ae8c801b705ee1eeaaf2b6c1717a0c7ff519aeb7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
- if @project.pages_deployed?
  - if can?(current_user, :remove_pages, @project)
    .card.border-danger
      .card-header.bg-danger.text-white Remove pages
      .errors-holder
      .card-body
        %p
          Removing pages will prevent them from being exposed to the 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