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
|
2017-08-17 22:00:37 +05:30
|
|
|
%p
|
2019-12-21 20:55:43 +05:30
|
|
|
= s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
|
2017-08-17 22:00:37 +05:30
|
|
|
.form-actions
|
2019-12-21 20:55:43 +05:30
|
|
|
= link_to s_('GitLabPages|Remove pages'), project_pages_path(@project), data: { confirm: s_('GitLabPages|Are you sure?')}, method: :delete, class: "btn btn-remove"
|
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')
|