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

_dns.html.haml « pages_domains « projects « views « app - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 360ef01620bd305c92603eacee3a4b3272e4bfe4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
- dns_record = "#{domain_presenter.domain} ALIAS #{pages_subdomain(domain_presenter.project)}.#{Settings.pages.host}."

.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', category: :primary, size: :medium)
      %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
        .gl-mb-3
          - text, status = domain_presenter.unverified? ? [_('Unverified'), :danger] : [_('Verified'), :success]
          = gl_badge_tag text, variant: status
          = link_button_to sprite_icon("redo"), verify_project_pages_domain_path(@project, domain_presenter), method: :post, class: 'gl-ml-2 has-tooltip', title: _("Retry verification"), size: :small
        .input-group
          = text_field_tag :domain_verification, domain_presenter.verification_record, class: "monospace js-select-on-focus form-control", readonly: true
          .input-group-append
            = clipboard_button(target: '#domain_verification', category: :primary, size: :medium)
        %p.form-text.text-muted
          - link_to_help = link_to(_('verify ownership'), help_page_path('user/project/pages/custom_domains_ssl_tls_certification/index', anchor: '4-verify-the-domains-ownership'))
          = _("To %{link_to_help} of your domain, add the above key to a TXT record within your DNS configuration within seven days.").html_safe % { link_to_help: link_to_help }