blob: 97c3ad11f1abc4a5df25a0297629ade7f460c50c (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
- 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.")
|