diff options
author | Thong Kuah <tkuah@gitlab.com> | 2018-12-06 11:32:57 +1300 |
---|---|---|
committer | Thong Kuah <tkuah@gitlab.com> | 2018-12-17 09:50:53 +1300 |
commit | 9dc67bf10cf9a00825a1895c2dc37b6df91c7246 (patch) | |
tree | f3b343b1935d73511c472ff5b423cac0af4637eb /app/views/clusters/clusters | |
parent | 887bbd8e7e788ffba86829d7943c64994264ed9d (diff) | |
download | gitlab-ce-9dc67bf10cf9a00825a1895c2dc37b6df91c7246.tar.gz |
Move group path display logic to helper
Add specs
Diffstat (limited to 'app/views/clusters/clusters')
-rw-r--r-- | app/views/clusters/clusters/_cluster.html.haml | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/app/views/clusters/clusters/_cluster.html.haml b/app/views/clusters/clusters/_cluster.html.haml index 7d6331e74fb..94be148b55d 100644 --- a/app/views/clusters/clusters/_cluster.html.haml +++ b/app/views/clusters/clusters/_cluster.html.haml @@ -3,12 +3,7 @@ .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} /" + = cluster_group_path_display(cluster, clusterable) = link_to cluster.name, cluster.show_path - unless cluster.enabled? %span.badge.badge-danger Connection disabled |