Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
48288f6b
Commit
48288f6b
authored
Oct 17, 2018
by
samdbeckham
Committed by
Olivier Gonzalez
Oct 23, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync group sidebar template with EE
- Allow to extend nav links for the Group sidebar
parent
742f8d64
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
1 deletion
+22
-1
app/helpers/groups_helper.rb
app/helpers/groups_helper.rb
+9
-0
app/views/layouts/nav/sidebar/_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+13
-1
No files found.
app/helpers/groups_helper.rb
View file @
48288f6b
# frozen_string_literal: true
module
GroupsHelper
def
group_overview_nav_link_paths
%w[
groups#show
groups#activity
groups#subgroups
analytics#show
]
end
def
group_nav_link_paths
%w[groups#projects groups#edit badges#index ci_cd#show ldap_group_links#index hooks#index audit_events#index pipeline_quota#index]
end
...
...
app/views/layouts/nav/sidebar/_group.html.haml
View file @
48288f6b
...
...
@@ -12,7 +12,7 @@
=
@group
.
name
%ul
.sidebar-top-level-items.qa-group-sidebar
-
if
group_sidebar_link?
(
:overview
)
=
nav_link
(
path:
[
'groups#show'
,
'groups#activity'
,
'groups#subgroups'
,
'analytics#show'
]
,
html_options:
{
class:
'home'
})
do
=
nav_link
(
path:
group_overview_nav_link_paths
,
html_options:
{
class:
'home'
})
do
=
link_to
group_path
(
@group
)
do
.nav-icon-container
=
sprite_icon
(
'home'
)
...
...
@@ -36,6 +36,16 @@
%span
=
_
(
'Activity'
)
=
render_if_exists
'groups/sidebar/security_dashboard'
-
if
group_sidebar_link?
(
:contribution_analytics
)
=
nav_link
(
path:
'analytics#show'
)
do
=
link_to
group_analytics_path
(
@group
),
title:
'Contribution Analytics'
,
data:
{
placement:
'right'
}
do
%span
Contribution Analytics
=
render_if_exists
"layouts/nav/ee/epic_link"
,
group:
@group
-
if
group_sidebar_link?
(
:issues
)
=
nav_link
(
path:
issues_sub_menu_items
)
do
=
link_to
issues_group_path
(
@group
)
do
...
...
@@ -132,4 +142,6 @@
%span
=
_
(
'CI / CD'
)
=
render_if_exists
"groups/ee/settings_nav"
=
render
'shared/sidebar_toggle_button'
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment