Commit 5b159819 authored by Dave Pisek's avatar Dave Pisek

Add "security" as nav-item to project sidebar

Moves the security dashboard and dependency list into it's own
top-level navigation item named 'Securty & Compliance', within the
project's sidebar.

This should only affect EE, since the template changes only touch
partials that get conditionally rendered and only exist in EE.
parent c47412d4
......@@ -34,10 +34,6 @@
= link_to project_releases_path(@project), title: _('Releases'), class: 'shortcuts-project-releases' do
%span= _('Releases')
= render_if_exists 'projects/sidebar/security_dashboard'
= render_if_exists 'projects/sidebar/dependencies'
- if can?(current_user, :read_cycle_analytics, @project)
= nav_link(path: 'cycle_analytics#show') do
= link_to project_cycle_analytics_path(@project), title: _('Cycle Analytics'), class: 'shortcuts-project-cycle-analytics' do
......@@ -203,6 +199,8 @@
%span
= _('Charts')
= render_if_exists 'layouts/nav/sidebar/project_security_link' # EE-specific
- if project_nav_tab? :operations
= nav_link(controller: sidebar_operations_paths) do
= link_to sidebar_operations_link_path, class: 'shortcuts-operations qa-link-operations' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment