diff options
author | Dave Pisek <dpisek@gitlab.com> | 2019-07-10 21:45:58 +1000 |
---|---|---|
committer | Dave Pisek <dpisek@gitlab.com> | 2019-07-24 13:22:08 +1000 |
commit | 5b1598191750ed8926b42365abf37a2a277a5d81 (patch) | |
tree | 5b00f38f48c55dc7146b603cccd2233167edabb4 | |
parent | c47412d48369c5e2becb2a7ce786aac73d0b325c (diff) | |
download | gitlab-ce-5b1598191750ed8926b42365abf37a2a277a5d81.tar.gz |
Add "security" as nav-item to project sidebar12250-mvc-security-navigation-section-project
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.
-rw-r--r-- | app/views/layouts/nav/sidebar/_project.html.haml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/app/views/layouts/nav/sidebar/_project.html.haml b/app/views/layouts/nav/sidebar/_project.html.haml index a9af5ba5008..a9d41997bb7 100644 --- a/app/views/layouts/nav/sidebar/_project.html.haml +++ b/app/views/layouts/nav/sidebar/_project.html.haml @@ -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 |