diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-11-03 10:52:29 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-11-03 10:52:29 +0000 |
commit | 54e27754b87ede2920fb56ffd7fbbe603076c16e (patch) | |
tree | 2e0f0d2b3d0f479f276c21081eb66289622c9235 | |
parent | 91229f0b5c8137a60a7a0b1242a1aa1baff78efa (diff) | |
download | gitlab-ce-54e27754b87ede2920fb56ffd7fbbe603076c16e.tar.gz |
Adds check for existing cluster
-rw-r--r-- | app/views/projects/clusters/new.html.haml | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/app/views/projects/clusters/new.html.haml b/app/views/projects/clusters/new.html.haml index b11202a4985..c850eeb3a7d 100644 --- a/app/views/projects/clusters/new.html.haml +++ b/app/views/projects/clusters/new.html.haml @@ -5,9 +5,16 @@ .col-sm-4 = render 'sidebar' .col-sm-8 - %h4= s_('ClusterIntegration|Choose how to set up cluster integration') + - if @project.kubernetes_service&.active? + %h4.prepend-top-0= s_('ClusterIntegration|Cluster management') - %p= s_('ClusterIntegration| Create a new cluster on Google Engine right from GitLab') - = link_to s_('ClusterIntegration|Create on GKE'), providers_gcp_new_namespace_project_clusters_path(@project.namespace, @project), class: 'btn append-bottom-20' - %p= s_('ClusterIntegration| Enter the details for an existing Kubernetes cluster') - = link_to s_('ClusterIntegration|Add an existing cluster'), edit_project_service_path(@project, :kubernetes), class: 'btn append-bottom-20' + %p= s_('ClusterIntegration|A cluster has been set up on this project through the Kubernetes integration page') + = link_to s_('ClusterIntegration|Manage Kubernetes integration'), edit_project_service_path(@project, :kubernetes), class: 'btn append-bottom-20' + + - else + %h4.prepend-top-0= s_('ClusterIntegration|Choose how to set up cluster integration') + + %p= s_('ClusterIntegration|Create a new cluster on Google Container Engine right from GitLab') + = link_to s_('ClusterIntegration|Create on GKE'), providers_gcp_new_namespace_project_clusters_path(@project.namespace, @project), class: 'btn append-bottom-20' + %p= s_('ClusterIntegration|Enter the details for an existing Kubernetes cluster') + = link_to s_('ClusterIntegration|Add an existing cluster'), edit_project_service_path(@project, :kubernetes), class: 'btn append-bottom-20' |