2018-03-27 19:54:05 +05:30
|
|
|
- add_to_breadcrumbs "Pages", project_pages_path(@project)
|
|
|
|
- breadcrumb_title @domain.domain
|
2017-08-17 22:00:37 +05:30
|
|
|
- page_title "#{@domain.domain}", 'Pages Domains'
|
2018-05-09 12:01:36 +05:30
|
|
|
- dns_record = "#{@domain.domain} CNAME #{@domain.project.pages_subdomain}.#{Settings.pages.host}."
|
2018-03-27 19:54:05 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
|
2018-05-09 12:01:36 +05:30
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- if verification_enabled && @domain.unverified?
|
2018-05-09 12:01:36 +05:30
|
|
|
= content_for :flash_message do
|
|
|
|
.alert.alert-warning
|
|
|
|
.container-fluid.container-limited
|
|
|
|
This domain is not verified. You will need to verify ownership before access is enabled.
|
2017-08-17 22:00:37 +05:30
|
|
|
|
2018-05-09 12:01:36 +05:30
|
|
|
%h3.page-title.with-button
|
2018-11-08 19:23:39 +05:30
|
|
|
= link_to 'Edit', edit_project_pages_domain_path(@project, @domain), class: 'btn btn-success float-right'
|
2018-05-09 12:01:36 +05:30
|
|
|
Pages Domain
|
2017-08-17 22:00:37 +05:30
|
|
|
|
|
|
|
.table-holder
|
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Domain
|
|
|
|
%td
|
2018-05-09 12:01:36 +05:30
|
|
|
= link_to @domain.url do
|
|
|
|
= @domain.url
|
|
|
|
= icon('external-link')
|
2017-08-17 22:00:37 +05:30
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
DNS
|
|
|
|
%td
|
2018-05-09 12:01:36 +05:30
|
|
|
.input-group
|
|
|
|
= text_field_tag :domain_dns, dns_record , class: "monospace js-select-on-focus form-control", readonly: true
|
2018-11-08 19:23:39 +05:30
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#domain_dns', class: 'btn-default input-group-text d-none d-sm-block')
|
|
|
|
%p.form-text.text-muted
|
2018-05-09 12:01:36 +05:30
|
|
|
To access this domain create a new DNS record
|
|
|
|
|
2018-03-17 18:26:18 +05:30
|
|
|
- if verification_enabled
|
2018-05-09 12:01:36 +05:30
|
|
|
- verification_record = "#{@domain.verification_domain} TXT #{@domain.keyed_verification_code}"
|
2018-03-17 18:26:18 +05:30
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Verification status
|
|
|
|
%td
|
2018-05-09 12:01:36 +05:30
|
|
|
= form_tag verify_project_pages_domain_path(@project, @domain) do
|
|
|
|
.status-badge
|
2018-11-08 19:23:39 +05:30
|
|
|
- text, status = @domain.unverified? ? [_('Unverified'), 'badge-danger'] : [_('Verified'), 'badge-success']
|
|
|
|
.badge{ class: status }
|
2018-05-09 12:01:36 +05:30
|
|
|
= text
|
|
|
|
%button.btn.has-tooltip{ type: "submit", data: { container: 'body' }, title: _("Retry verification") }
|
|
|
|
= sprite_icon('redo')
|
|
|
|
.input-group
|
|
|
|
= text_field_tag :domain_verification, verification_record, class: "monospace js-select-on-focus form-control", readonly: true
|
2018-11-08 19:23:39 +05:30
|
|
|
.input-group-append
|
|
|
|
= clipboard_button(target: '#domain_verification', class: 'btn-default d-none d-sm-block')
|
|
|
|
%p.form-text.text-muted
|
2018-03-17 18:26:18 +05:30
|
|
|
- help_link = help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record')
|
2018-05-09 12:01:36 +05:30
|
|
|
To #{link_to 'verify ownership', help_link} of your domain,
|
|
|
|
add the above key to a TXT record within to your DNS configuration.
|
2018-03-17 18:26:18 +05:30
|
|
|
|
2017-08-17 22:00:37 +05:30
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Certificate
|
|
|
|
%td
|
|
|
|
- if @domain.certificate_text
|
|
|
|
%pre
|
|
|
|
= @domain.certificate_text
|
|
|
|
- else
|
|
|
|
.light
|
|
|
|
missing
|