2018-02-25 08:12:27 -05:00
|
|
|
- add_to_breadcrumbs "Pages", project_pages_path(@project)
|
|
|
|
- breadcrumb_title @domain.domain
|
2016-02-15 09:01:42 -05:00
|
|
|
- page_title "#{@domain.domain}", 'Pages Domains'
|
2018-04-06 04:22:57 -04:00
|
|
|
- dns_record = "#{@domain.domain} CNAME #{@domain.project.pages_subdomain}.#{Settings.pages.host}."
|
2018-02-25 08:12:27 -05:00
|
|
|
|
2018-02-06 08:25:46 -05:00
|
|
|
- verification_enabled = Gitlab::CurrentSettings.pages_domain_verification_enabled?
|
2018-04-06 04:22:57 -04:00
|
|
|
|
2018-02-06 08:25:46 -05:00
|
|
|
- if verification_enabled && @domain.unverified?
|
2018-04-06 04:22:57 -04:00
|
|
|
= 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.
|
2016-02-14 15:22:44 -05:00
|
|
|
|
2018-04-06 04:22:57 -04:00
|
|
|
%h3.page-title.with-button
|
2018-04-09 13:42:45 -04:00
|
|
|
= link_to 'Edit', edit_project_pages_domain_path(@project, @domain), class: 'btn btn-success float-right'
|
2018-04-06 04:22:57 -04:00
|
|
|
Pages Domain
|
2016-02-14 15:22:44 -05:00
|
|
|
|
|
|
|
.table-holder
|
|
|
|
%table.table
|
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Domain
|
|
|
|
%td
|
2018-04-06 04:22:57 -04:00
|
|
|
= link_to @domain.url do
|
|
|
|
= @domain.url
|
|
|
|
= icon('external-link')
|
2016-02-15 08:45:11 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
DNS
|
|
|
|
%td
|
2018-04-06 04:22:57 -04:00
|
|
|
.input-group
|
|
|
|
= text_field_tag :domain_dns, dns_record , class: "monospace js-select-on-focus form-control", readonly: true
|
2018-04-12 16:49:37 -04:00
|
|
|
.input-group-append
|
2018-04-12 18:55:40 -04:00
|
|
|
= clipboard_button(target: '#domain_dns', class: 'btn-default input-group-text d-none d-sm-block')
|
2018-04-11 14:26:37 -04:00
|
|
|
%p.form-text.text-muted
|
2018-04-06 04:22:57 -04:00
|
|
|
To access this domain create a new DNS record
|
|
|
|
|
2018-02-06 08:25:46 -05:00
|
|
|
- if verification_enabled
|
2018-04-06 04:22:57 -04:00
|
|
|
- verification_record = "#{@domain.verification_domain} TXT #{@domain.keyed_verification_code}"
|
2018-02-06 08:25:46 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Verification status
|
|
|
|
%td
|
2018-04-06 04:22:57 -04:00
|
|
|
= form_tag verify_project_pages_domain_path(@project, @domain) do
|
|
|
|
.status-badge
|
2018-04-13 15:37:07 -04:00
|
|
|
- text, status = @domain.unverified? ? [_('Unverified'), 'badge-danger'] : [_('Verified'), 'badge-success']
|
2018-04-13 16:03:53 -04:00
|
|
|
.badge{ class: status }
|
2018-04-06 04:22:57 -04:00
|
|
|
= 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-04-30 17:17:03 -04:00
|
|
|
.input-group-append
|
2018-04-09 17:50:40 -04:00
|
|
|
= clipboard_button(target: '#domain_verification', class: 'btn-default d-none d-sm-block')
|
2018-04-11 14:26:37 -04:00
|
|
|
%p.form-text.text-muted
|
2018-02-06 08:25:46 -05:00
|
|
|
- help_link = help_page_path('user/project/pages/getting_started_part_three.md', anchor: 'dns-txt-record')
|
2018-04-06 04:22:57 -04:00
|
|
|
To #{link_to 'verify ownership', help_link} of your domain,
|
|
|
|
add the above key to a TXT record within to your DNS configuration.
|
2018-02-06 08:25:46 -05:00
|
|
|
|
2016-02-14 15:22:44 -05:00
|
|
|
%tr
|
|
|
|
%td
|
|
|
|
Certificate
|
|
|
|
%td
|
|
|
|
- if @domain.certificate_text
|
|
|
|
%pre
|
|
|
|
= @domain.certificate_text
|
|
|
|
- else
|
|
|
|
.light
|
|
|
|
missing
|