Commit 1b006b45 authored by Mike Greiling's avatar Mike Greiling Committed by Kamil Trzciński

Move "add cluster" button partial to match CE

parent e1559872
-# This partial is overridden in EE
.nav-controls
%span.btn.btn-add-cluster.disabled.js-add-cluster
= s_("ClusterIntegration|Add Kubernetes cluster")
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
.top-area.adjust .top-area.adjust
.nav-text .nav-text
= s_("ClusterIntegration|Kubernetes clusters can be used to deploy applications and to provide Review Apps for this project") = s_("ClusterIntegration|Kubernetes clusters can be used to deploy applications and to provide Review Apps for this project")
= render 'projects/ee/clusters/buttons', project: @project = render 'clusters/clusters/buttons'
.ci-table.js-clusters-list .ci-table.js-clusters-list
.gl-responsive-table-row.table-row-header{ role: "row" } .gl-responsive-table-row.table-row-header{ role: "row" }
.table-section.section-30{ role: "rowheader" } .table-section.section-30{ role: "rowheader" }
......
.nav-controls
- if clusterable.feature_available?(:multiple_clusters)
= link_to s_("ClusterIntegration|Add Kubernetes cluster"), clusterable.new_path, class: "btn btn-success btn-add-cluster has-tooltip js-add-cluster"
- else
%span.btn.btn-add-cluster.disabled.js-add-cluster
= s_("ClusterIntegration|Add Kubernetes cluster")
.nav-controls
- if project.feature_available?(:multiple_clusters)
= link_to s_("ClusterIntegration|Add Kubernetes cluster"), new_project_cluster_path(project), class: "btn btn-success btn-add-cluster has-tooltip js-add-cluster"
- else
= link_to s_("ClusterIntegration|Add Kubernetes cluster"), new_project_cluster_path(project), class: "btn btn-success btn-add-cluster disabled has-tooltip js-add-cluster", title: s_("ClusterIntegration|Multiple Kubernetes clusters are available in GitLab Enterprise Edition Premium and Ultimate")
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment