2016-08-18 11:36:31 -04:00
|
|
|
- if @project.pages_deployed?
|
|
|
|
- if can?(current_user, :remove_pages, @project)
|
2018-07-18 05:20:37 -04:00
|
|
|
.card.border-danger
|
|
|
|
.card-header.bg-danger.text-white Remove pages
|
2016-08-08 08:53:31 -04:00
|
|
|
.errors-holder
|
2018-04-10 13:11:34 -04:00
|
|
|
.card-body
|
2016-08-08 08:53:31 -04:00
|
|
|
%p
|
2018-06-03 23:49:01 -04:00
|
|
|
Removing pages will prevent them from being exposed to the outside world.
|
2016-08-08 08:53:31 -04:00
|
|
|
.form-actions
|
2017-06-29 13:06:35 -04:00
|
|
|
= link_to 'Remove pages', project_pages_path(@project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
|
2016-08-18 11:36:31 -04:00
|
|
|
- else
|
2019-02-25 06:43:19 -05:00
|
|
|
.nothing-here-block Only project maintainers can remove pages
|