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: 993026d28842c80a4f92b6e93fe01886bd485024 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
- if @project.pages_deployed?
  - if can?(current_user, :remove_pages, @project)
    .card.border-danger
      .card-header.bg-danger.text-white
        = s_('GitLabPages|Remove pages')
      .errors-holder
      .card-body
        %p.gl-mb-0
          = s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
      .card-footer
        = link_to s_('GitLabPages|Remove pages'), project_pages_path(@project), data: { confirm: s_('GitLabPages|Are you sure?'), 'confirm-btn-variant': 'danger'}, method: :delete, class: "btn gl-button btn-danger", "aria-label": s_('GitLabPages|Remove pages')
  - else
    .nothing-here-block
      = s_('GitLabPages|Only project maintainers can remove pages')