summaryrefslogtreecommitdiff
path: root/app/views/projects/pages_domains/edit.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/projects/pages_domains/edit.html.haml')
-rw-r--r--app/views/projects/pages_domains/edit.html.haml20
1 files changed, 12 insertions, 8 deletions
diff --git a/app/views/projects/pages_domains/edit.html.haml b/app/views/projects/pages_domains/edit.html.haml
index e11387ae742..40eda1a8a23 100644
--- a/app/views/projects/pages_domains/edit.html.haml
+++ b/app/views/projects/pages_domains/edit.html.haml
@@ -1,11 +1,15 @@
- add_to_breadcrumbs _("Pages"), project_pages_path(@project)
- breadcrumb_title @domain.domain
- page_title @domain.domain
-%h3.page-title
- = @domain.domain
-%hr.clearfix
-%div
- = form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'fieldset-form' } do |f|
- = render 'form', { f: f }
- .form-actions
- = f.submit _('Save Changes'), class: "btn btn-success"
+
+- if Feature.enabled?(:pages_lets_encrypt)
+ .js-pages-domain-app{ data: { domain_name: @domain.domain, domain_endpoint: project_pages_domain_path(@project, @domain, format: :json), domain_key: @domain.key } }
+- else
+ %h3.page-title
+ = @domain.domain
+ %hr.clearfix
+ %div
+ = form_for [@project.namespace.becomes(Namespace), @project, @domain], html: { class: 'fieldset-form' } do |f|
+ = render 'form', { f: f }
+ .form-actions
+ = f.submit _('Save Changes'), class: "btn btn-success"