2019-12-26 22:10:19 +05:30
|
|
|
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
|
2022-01-26 12:08:38 +05:30
|
|
|
- dns_record = "#{domain_presenter.domain} ALIAS #{domain_presenter.project.pages_subdomain}.#{Settings.pages.host}."
|
2019-12-26 22:10:19 +05:30
|
|
|
|
|
|
|
.form-group.border-section
|
|
|
|
.row
|
|
|
|
.col-sm-2
|
|
|
|
= _("DNS")
|
|
|
|
.col-sm-10
|
|
|
|
.input-group
|
|
|
|
= text_field_tag :domain_dns, dns_record , class: "monospace js-select-on-focus form-control", readonly: true
|
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#domain_dns', class: 'btn-default input-group-text d-none d-sm-block')
|
|
|
|
%p.form-text.text-muted
|
|
|
|
= _("To access this domain create a new DNS record")
|
|
|
|
- if verification_enabled
|
|
|
|
.form-group.border-section
|
|
|
|
.row
|
|
|
|
.col-sm-2
|
|
|
|
= _("Verification status")
|
|
|
|
.col-sm-10
|
2022-07-23 23:45:48 +05:30
|
|
|
.gl-mb-3
|
2022-04-04 11:22:00 +05:30
|
|
|
- text, status = domain_presenter.unverified? ? [_('Unverified'), :danger] : [_('Verified'), :success]
|
|
|
|
= gl_badge_tag text, variant: status
|
2022-07-23 23:45:48 +05:30
|
|
|
= link_to sprite_icon("redo"), verify_project_pages_domain_path(@project, domain_presenter), method: :post, class: "gl-ml-2 gl-button btn btn-sm btn-default has-tooltip", title: _("Retry verification")
|
2019-12-26 22:10:19 +05:30
|
|
|
.input-group
|
2023-07-09 08:55:56 +05:30
|
|
|
= text_field_tag :domain_verification, domain_presenter.verification_record, class: "monospace js-select-on-focus form-control", readonly: true
|
2019-12-26 22:10:19 +05:30
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#domain_verification', class: 'btn-default d-none d-sm-block')
|
|
|
|
%p.form-text.text-muted
|
|
|
|
- link_to_help = link_to(_('verify ownership'), help_page_path('user/project/pages/custom_domains_ssl_tls_certification/index.md', anchor: '4-verify-the-domains-ownership'))
|
2021-01-29 00:20:46 +05:30
|
|
|
= _("To %{link_to_help} of your domain, add the above key to a TXT record within your DNS configuration.").html_safe % { link_to_help: link_to_help }
|