summaryrefslogtreecommitdiff
path: root/app/views/projects/pages_domains/show.html.haml
blob: 72e9203bdb0713279b6647274d42616e2fc51bd2 (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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
- page_title "#{@domain.domain}", 'Pages Domains'
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
- if verification_enabled && @domain.unverified?
  %p.alert.alert-warning
    %strong
      This domain is not verified. You will need to verify ownership before
      access is enabled.

%h3.page-title
  Pages Domain

.table-holder
  %table.table
    %tr
      %td
        Domain
      %td
        = link_to @domain.domain, @domain.url
    %tr
      %td
        DNS
      %td
        %p
          To access this domain create a new DNS record:
        %pre
          #{@domain.domain} CNAME #{@domain.project.pages_subdomain}.#{Settings.pages.host}.
    - if verification_enabled
      %tr
        %td
          Verification status
        %td
          %p
            - help_link = help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record')
            To #{link_to 'verify ownership', help_link} of your domain, create
            this DNS record:
          %pre
            #{@domain.verification_domain} TXT #{@domain.keyed_verification_code}
          %p
            - if @domain.verified?
              #{@domain.domain} has been successfully verified.
            - else
              = button_to 'Verify ownership', verify_project_pages_domain_path(@project, @domain), class: 'btn btn-save btn-sm'

    %tr
      %td
        Certificate
      %td
        - if @domain.certificate_text
          %pre
            = @domain.certificate_text
        - else
          .light
            missing