summaryrefslogtreecommitdiff
path: root/app/views/clusters/clusters/_sidebar.html.haml
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/clusters/clusters/_sidebar.html.haml')
-rw-r--r--app/views/clusters/clusters/_sidebar.html.haml14
1 files changed, 10 insertions, 4 deletions
diff --git a/app/views/clusters/clusters/_sidebar.html.haml b/app/views/clusters/clusters/_sidebar.html.haml
index bda774ee780..045c03df4fa 100644
--- a/app/views/clusters/clusters/_sidebar.html.haml
+++ b/app/views/clusters/clusters/_sidebar.html.haml
@@ -1,8 +1,14 @@
+- is_connect_page = local_assigns.fetch(:is_connect_page, false)
+- docs_mode = local_assigns.fetch(:docs_mode, false)
+- title = is_connect_page ? s_('ClusterIntegration|Connect a Kubernetes cluster') : s_('ClusterIntegration|Create a Kubernetes cluster')
+
%h3
- = s_('ClusterIntegration|Connect a Kubernetes cluster')
+ = title
%p
= clusterable.sidebar_text
-%p
- = clusterable.learn_more_link
-= render 'clusters/clusters/multiple_clusters_message'
+- if !docs_mode
+ %p
+ = clusterable.learn_more_link
+
+ = render 'clusters/clusters/multiple_clusters_message'