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
|
2019-12-21 20:55:43 +05:30
|
|
|
.card-header.bg-danger.text-white
|
|
|
|
= s_('GitLabPages|Remove pages')
|
2017-08-17 22:00:37 +05:30
|
|
|
.errors-holder
|
2018-11-08 19:23:39 +05:30
|
|
|
.card-body
|
2021-03-08 18:12:59 +05:30
|
|
|
%p.gl-mb-0
|
2019-12-21 20:55:43 +05:30
|
|
|
= s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
|
2021-03-08 18:12:59 +05:30
|
|
|
.card-footer
|
|
|
|
= 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"
|
2017-08-17 22:00:37 +05:30
|
|
|
- else
|
2019-12-21 20:55:43 +05:30
|
|
|
.nothing-here-block
|
|
|
|
= s_('GitLabPages|Only project maintainers can remove pages')
|