debian-mirror-gitlab/app/views/projects/pages_domains/show.html.haml

69 lines
2.8 KiB
Text
Raw Normal View History

2019-03-02 22:35:43 +05:30
- add_to_breadcrumbs _("Pages"), project_pages_path(@project)
2018-03-27 19:54:05 +05:30
- breadcrumb_title @domain.domain
2019-03-02 22:35:43 +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
2019-03-02 22:35:43 +05:30
= _("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
2019-03-02 22:35:43 +05:30
= link_to _('Edit'), edit_project_pages_domain_path(@project, @domain), class: 'btn btn-success float-right'
= _("Pages Domain")
2017-08-17 22:00:37 +05:30
.table-holder
%table.table
%tr
%td
2019-03-02 22:35:43 +05:30
= _("Domain")
2017-08-17 22:00:37 +05:30
%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
2019-03-02 22:35:43 +05:30
= _("DNS")
2017-08-17 22:00:37 +05:30
%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
2019-03-02 22:35:43 +05:30
= _("To access this domain create a new DNS record")
2018-05-09 12:01:36 +05:30
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
2019-03-02 22:35:43 +05:30
= _("Verification status")
2018-03-17 18:26:18 +05:30
%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
2019-09-30 21:07:59 +05:30
- 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'))
2019-03-02 22:35:43 +05:30
= _("To %{link_to_help} of your domain, add the above key to a TXT record within to your DNS configuration.").html_safe % { link_to_help: link_to_help }
2018-03-17 18:26:18 +05:30
2017-08-17 22:00:37 +05:30
%tr
%td
2019-03-02 22:35:43 +05:30
= _("Certificate")
2017-08-17 22:00:37 +05:30
%td
- if @domain.certificate_text
%pre
= @domain.certificate_text
- else
.light
2019-03-02 22:35:43 +05:30
= _("missing")