Render group namespaces in clusters index

This commit is contained in:
Mike Greiling 2018-12-04 17:07:10 -06:00 committed by Thong Kuah
parent bfec22a0fa
commit 671c5b2e6f
1 changed files with 6 additions and 0 deletions

View File

@ -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
= "… /".html_safe
= "#{cluster.group.name} /"
= link_to cluster.name, cluster.show_path
- unless cluster.enabled?
%span.badge.badge-danger Connection disabled