summaryrefslogtreecommitdiff
path: root/app/helpers/clusters_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/clusters_helper.rb')
-rw-r--r--app/helpers/clusters_helper.rb36
1 files changed, 0 insertions, 36 deletions
diff --git a/app/helpers/clusters_helper.rb b/app/helpers/clusters_helper.rb
index ae6c71e0019..fac606ee8db 100644
--- a/app/helpers/clusters_helper.rb
+++ b/app/helpers/clusters_helper.rb
@@ -6,18 +6,6 @@ module ClustersHelper
false
end
- # We do not want to show the group path for clusters belonging to the
- # clusterable, only for the ancestor clusters.
- def cluster_group_path_display(cluster, clusterable)
- if cluster.group_type? && cluster.group.id != clusterable.id
- components = cluster.group.full_path_components
-
- group_path_shortened(components) + ' / ' + link_to_cluster(cluster)
- else
- link_to_cluster(cluster)
- end
- end
-
def render_gcp_signup_offer
return if Gitlab::CurrentSettings.current_application_settings.hide_third_party_offers?
return unless show_gcp_signup_offer?
@@ -30,28 +18,4 @@ module ClustersHelper
def render_cluster_help_content?(clusters, clusterable)
clusters.length > clusterable.clusters.length
end
-
- private
-
- def components_split_by_horizontal_ellipsis(components)
- [
- components.first,
- sprite_icon('ellipsis_h', size: 12, css_class: 'vertical-align-middle').html_safe,
- components.last
- ]
- end
-
- def link_to_cluster(cluster)
- link_to cluster.name, cluster.show_path
- end
-
- def group_path_shortened(components)
- breadcrumb = if components.size > 2
- components_split_by_horizontal_ellipsis(components)
- else
- components
- end
-
- breadcrumb.join(' / ').html_safe
- end
end