debian-mirror-gitlab/app/views/projects/pages/_destroy.haml

13 lines
530 B
Text
Raw Normal View History

2017-08-17 22:00:37 +05:30
- if @project.pages_deployed?
- if can?(current_user, :remove_pages, @project)
2018-11-18 11:00:15 +05:30
.card.border-danger
.card-header.bg-danger.text-white Remove pages
2017-08-17 22:00:37 +05:30
.errors-holder
2018-11-08 19:23:39 +05:30
.card-body
2017-08-17 22:00:37 +05:30
%p
2018-11-08 19:23:39 +05:30
Removing pages will prevent them from being exposed to the outside world.
2017-08-17 22:00:37 +05:30
.form-actions
2017-09-10 17:25:29 +05:30
= link_to 'Remove pages', project_pages_path(@project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
2017-08-17 22:00:37 +05:30
- else
2019-05-18 00:54:41 +05:30
.nothing-here-block Only project maintainers can remove pages