Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/pages/_destroy.haml')
-rw-r--r--app/views/projects/pages/_destroy.haml17
1 files changed, 7 insertions, 10 deletions
diff --git a/app/views/projects/pages/_destroy.haml b/app/views/projects/pages/_destroy.haml
index ff30c9ce1ea..3d95fa8a655 100644
--- a/app/views/projects/pages/_destroy.haml
+++ b/app/views/projects/pages/_destroy.haml
@@ -1,16 +1,13 @@
- if @project.pages_deployed?
- if can?(current_user, :remove_pages, @project)
- = render Pajamas::CardComponent.new(card_options: { class: 'border-danger' }, header_options: {class: 'bg-danger text-white'}) do |c|
- - c.with_header do
+ .gl-bg-red-50.gl-inset-border-l-3-red-600.gl-py-5.gl-px-6
+ %h4.gl-font-lg.gl-mt-0= s_('GitLabPages|Remove pages')
+ %p= s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
+ = render Pajamas::ButtonComponent.new(href: project_pages_path(@project),
+ variant: :danger,
+ method: :delete,
+ button_options: {data: { confirm: s_('GitLabPages|Are you sure?'), 'confirm-btn-variant': 'danger'}, "aria-label": s_('GitLabPages|Remove pages')}) do
= s_('GitLabPages|Remove pages')
- - c.with_body do
- = s_('GitLabPages|Removing pages will prevent them from being exposed to the outside world.')
- - c.with_footer do
- = render Pajamas::ButtonComponent.new(href: project_pages_path(@project),
- variant: :danger,
- method: :delete,
- button_options: {data: { confirm: s_('GitLabPages|Are you sure?'), 'confirm-btn-variant': 'danger'}, "aria-label": s_('GitLabPages|Remove pages')}) do
- = s_('GitLabPages|Remove pages')
- else
.nothing-here-block
= s_('GitLabPages|Only project maintainers can remove pages')