summaryrefslogtreecommitdiff
path: root/app/helpers/analytics/navbar_helper.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers/analytics/navbar_helper.rb')
-rw-r--r--app/helpers/analytics/navbar_helper.rb41
1 files changed, 0 insertions, 41 deletions
diff --git a/app/helpers/analytics/navbar_helper.rb b/app/helpers/analytics/navbar_helper.rb
index 33a5028cdf1..4c7ded1ba18 100644
--- a/app/helpers/analytics/navbar_helper.rb
+++ b/app/helpers/analytics/navbar_helper.rb
@@ -13,14 +13,6 @@ module Analytics
end
end
- def project_analytics_navbar_links(project, current_user)
- [
- cycle_analytics_navbar_link(project, current_user),
- repository_analytics_navbar_link(project, current_user),
- ci_cd_analytics_navbar_link(project, current_user)
- ].compact
- end
-
def group_analytics_navbar_links(group, current_user)
[]
end
@@ -30,39 +22,6 @@ module Analytics
def navbar_sub_item(args)
NavbarSubItem.new(**args)
end
-
- def cycle_analytics_navbar_link(project, current_user)
- return unless project_nav_tab?(:cycle_analytics)
-
- navbar_sub_item(
- title: _('Value Stream'),
- path: 'cycle_analytics#show',
- link: project_cycle_analytics_path(project),
- link_to_options: { class: 'shortcuts-project-cycle-analytics' }
- )
- end
-
- def repository_analytics_navbar_link(project, current_user)
- return if project.empty_repo?
-
- navbar_sub_item(
- title: _('Repository'),
- path: 'graphs#charts',
- link: charts_project_graph_path(project, current_ref),
- link_to_options: { class: 'shortcuts-repository-charts' }
- )
- end
-
- def ci_cd_analytics_navbar_link(project, current_user)
- return unless project_nav_tab?(:pipelines)
- return unless project.feature_available?(:builds, current_user) || !project.empty_repo?
-
- navbar_sub_item(
- title: _('CI/CD'),
- path: 'pipelines#charts',
- link: charts_project_pipelines_path(project)
- )
- end
end
end