gitlab-org--gitlab-foss/app/views/projects/pages/_destroy.haml
Sam dadf120901 Update _destroy.haml
Use better descriptive text
2018-06-04 03:49:01 +00:00

12 lines
503 B
Text

- if @project.pages_deployed?
- if can?(current_user, :remove_pages, @project)
.card.bg-danger
.card-header 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