diff options
author | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-22 10:23:02 +0300 |
---|---|---|
committer | Kushal Pandya <kushalspandya@gmail.com> | 2019-03-22 10:23:02 +0300 |
commit | f6772ffb1a35adced2b8f70fb02de77985a363ef (patch) | |
tree | bce729b699133cb51fac26c93a5d890f7ab1f9f5 /app/views/clusters | |
parent | 9618f419f28efd731767d4319d1ba4c958a4cb45 (diff) | |
parent | 19997ac701be035bd2054b22a756a7a74547599a (diff) |
Merge branch '57357-automate-base-domain-help-text' into 'master'
Automate base domain help text on Clusters page
Closes #57357
See merge request gitlab-org/gitlab-ce!26124
Diffstat (limited to 'app/views/clusters')
-rw-r--r-- | app/views/clusters/clusters/_form.html.haml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/views/clusters/clusters/_form.html.haml b/app/views/clusters/clusters/_form.html.haml index c08b41e2f23..455322b2089 100644 --- a/app/views/clusters/clusters/_form.html.haml +++ b/app/views/clusters/clusters/_form.html.haml @@ -33,9 +33,9 @@ - auto_devops_url = help_page_path('topics/autodevops/index') - auto_devops_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: auto_devops_url } = s_('ClusterIntegration|Specifying a domain will allow you to use Auto Review Apps and Auto Deploy stages for %{auto_devops_start}Auto DevOps%{auto_devops_end}. The domain should have a wildcard DNS configured matching the domain.').html_safe % { auto_devops_start: auto_devops_start, auto_devops_end: '</a>'.html_safe } - - if @cluster.application_ingress_external_ip.present? + %span{ :class => ["js-ingress-domain-help-text", ("hide" unless @cluster.application_ingress_external_ip.present?)] } = s_('ClusterIntegration|Alternatively') - %code #{@cluster.application_ingress_external_ip}.nip.io + %code{ :class => "js-ingress-domain-snippet" } #{@cluster.application_ingress_external_ip}.nip.io = s_('ClusterIntegration| can be used instead of a custom domain.') - custom_domain_url = help_page_path('user/project/clusters/index', anchor: 'pointing-your-dns-at-the-external-endpoint') - custom_domain_start = '<a href="%{url}" target="_blank" rel="noopener noreferrer">'.html_safe % { url: custom_domain_url } |