Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Greiling <mike@pixelcog.com>2018-12-05 02:07:10 +0300
committerThong Kuah <tkuah@gitlab.com>2018-12-16 23:50:53 +0300
commit671c5b2e6f4032574e1e0192595ca7791e29973b (patch)
tree74d05df99c0d4b34f56fcb77e3f371ca46300886 /app/views/clusters
parentbfec22a0fa6f5be137738fca87ce2b736ffea6ba (diff)
Render group namespaces in clusters index
Diffstat (limited to 'app/views/clusters')
-rw-r--r--app/views/clusters/clusters/_cluster.html.haml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/views/clusters/clusters/_cluster.html.haml b/app/views/clusters/clusters/_cluster.html.haml
index e15de3d504d..7d6331e74fb 100644
--- a/app/views/clusters/clusters/_cluster.html.haml
+++ b/app/views/clusters/clusters/_cluster.html.haml
@@ -3,6 +3,12 @@
.table-section.section-60
.table-mobile-header{ role: "rowheader" }= s_("ClusterIntegration|Kubernetes cluster")
.table-mobile-content
+ - if cluster.group_type? && cluster.group.id != clusterable.id
+ - if cluster.group.ancestors.any?
+ = "#{cluster.group.ancestors.first.name} /"
+ - if cluster.group.ancestors.length > 1
+ = "&hellip; /".html_safe
+ = "#{cluster.group.name} /"
= link_to cluster.name, cluster.show_path
- unless cluster.enabled?
%span.badge.badge-danger Connection disabled