debian-mirror-gitlab/app/views/projects/pages/_destroy.haml
2021-03-08 18:12:59 +05:30

14 lines
649 B
Text

- if @project.pages_deployed?
- if can?(current_user, :remove_pages, @project)
.card.border-danger
.card-header.bg-danger.text-white
= s_('GitLabPages|Remove pages')
.errors-holder
.card-body
%p.gl-mb-0
= s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
.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"
- else
.nothing-here-block
= s_('GitLabPages|Only project maintainers can remove pages')