2016-08-18 11:36:31 -04:00
|
|
|
- if @project.pages_deployed?
|
|
|
|
- if can?(current_user, :remove_pages, @project)
|
2016-08-08 08:53:31 -04:00
|
|
|
.panel.panel-default.panel.panel-danger
|
|
|
|
.panel-heading Remove pages
|
|
|
|
.errors-holder
|
|
|
|
.panel-body
|
|
|
|
%p
|
|
|
|
Removing the pages will prevent from exposing them to outside world.
|
|
|
|
.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
|
|
|
|
.nothing-here-block Only the project owner can remove pages
|