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
|
2019-10-01 05:10:39 -04:00
|
|
|
.card-header.bg-danger.text-white
|
|
|
|
= s_('GitLabPages|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
|
2019-10-01 05:10:39 -04:00
|
|
|
= s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
|
2016-08-08 08:53:31 -04:00
|
|
|
.form-actions
|
2020-10-09 08:09:07 -04:00
|
|
|
= link_to s_('GitLabPages|Remove pages'), project_pages_path(@project), data: { confirm: s_('GitLabPages|Are you sure?')}, method: :delete, class: "btn gl-button btn-danger"
|
2016-08-18 11:36:31 -04:00
|
|
|
- else
|
2019-10-01 05:10:39 -04:00
|
|
|
.nothing-here-block
|
|
|
|
= s_('GitLabPages|Only project maintainers can remove pages')
|