2016-08-18 15:36:31 +00:00
|
|
|
- if @project.pages_deployed?
|
|
|
|
- if can?(current_user, :remove_pages, @project)
|
2018-04-10 17:11:34 +00:00
|
|
|
.card.bg-danger
|
|
|
|
.card-header Remove pages
|
2016-08-08 12:53:31 +00:00
|
|
|
.errors-holder
|
2018-04-10 17:11:34 +00:00
|
|
|
.card-body
|
2016-08-08 12:53:31 +00:00
|
|
|
%p
|
|
|
|
Removing the pages will prevent from exposing them to outside world.
|
|
|
|
.form-actions
|
2017-06-29 17:06:35 +00:00
|
|
|
= link_to 'Remove pages', project_pages_path(@project), data: { confirm: 'Are you sure?'}, method: :delete, class: "btn btn-remove"
|
2016-08-18 15:36:31 +00:00
|
|
|
- else
|
|
|
|
.nothing-here-block Only the project owner can remove pages
|