debian-mirror-gitlab/app/views/projects/pages/_no_domains.html.haml
2023-07-09 08:55:56 +05:30

11 lines
658 B
Text

- can_add_new_domain = can_create_pages_custom_domains?(current_user, @project)
- if can?(current_user, :update_pages, @project)
= render Pajamas::CardComponent.new(card_options: { class: 'gl-mb-5'}, body_options: { class: 'gl-text-center nothing-here-block' }) do |c|
- c.with_header do
= s_('GitLabPages|Domains')
- if can_add_new_domain
= render Pajamas::ButtonComponent.new(variant: :confirm, href: new_project_pages_domain_path(@project)) do
= s_('GitLabPages|New Domain')
- c.with_body do
= s_("GitLabPages|Support for domains and certificates is disabled. Ask your system's administrator to enable it.")