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
69985f11
Commit
69985f11
authored
Apr 05, 2020
by
Gilang Gumilar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert priority ordering
parent
ae451983
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
14 deletions
+11
-14
ee/app/helpers/ee/analytics_navbar_helper.rb
ee/app/helpers/ee/analytics_navbar_helper.rb
+11
-14
No files found.
ee/app/helpers/ee/analytics_navbar_helper.rb
View file @
69985f11
...
...
@@ -16,7 +16,7 @@ module EE
override
:group_analytics_navbar_links
def
group_analytics_navbar_links
(
group
,
current_user
)
super
+
[
group_cycle_analytics_navbar_link
(
group
,
current_user
,
-
1
),
group_cycle_analytics_navbar_link
(
group
,
current_user
),
contribution_analytics_navbar_link
(
group
,
current_user
),
group_insights_navbar_link
(
group
,
current_user
),
issues_analytics_navbar_link
(
group
,
current_user
),
...
...
@@ -37,58 +37,55 @@ module EE
)
end
def
group_cycle_analytics_navbar_link
(
group
,
current_user
,
priority
=
0
)
def
group_cycle_analytics_navbar_link
(
group
,
current_user
)
return
unless
group_sidebar_link?
(
:cycle_analytics
)
navbar_sub_item
(
title:
_
(
'Value Stream'
),
path:
'groups/analytics/cycle_analytics#show'
,
link:
group_analytics_cycle_analytics_path
(
group
),
link_to_options:
{
data:
{
priority:
priority
}
}
link:
group_analytics_cycle_analytics_path
(
group
)
)
end
def
productivity_analytics_navbar_link
(
group
,
current_user
,
priority
=
0
)
def
productivity_analytics_navbar_link
(
group
,
current_user
)
return
unless
group_sidebar_link?
(
:productivity_analytics
)
navbar_sub_item
(
title:
_
(
'Productivity'
),
path:
'groups/analytics/productivity_analytics#show'
,
link:
group_analytics_productivity_analytics_path
(
group
),
link_to_options:
{
data:
{
priority:
priority
}
}
link:
group_analytics_productivity_analytics_path
(
group
)
)
end
def
contribution_analytics_navbar_link
(
group
,
current_user
,
priority
=
0
)
def
contribution_analytics_navbar_link
(
group
,
current_user
)
return
unless
group_sidebar_link?
(
:contribution_analytics
)
navbar_sub_item
(
title:
_
(
'Contribution'
),
path:
'groups/contribution_analytics#show'
,
link:
group_contribution_analytics_path
(
group
),
link_to_options:
{
data:
{
placement:
'right'
,
qa_selector:
'contribution_analytics_link'
,
priority:
priority
}
}
link_to_options:
{
data:
{
placement:
'right'
,
qa_selector:
'contribution_analytics_link'
}
}
)
end
def
group_insights_navbar_link
(
group
,
current_user
,
priority
=
0
)
def
group_insights_navbar_link
(
group
,
current_user
)
return
unless
group_sidebar_link?
(
:group_insights
)
navbar_sub_item
(
title:
_
(
'Insights'
),
path:
'groups/insights#show'
,
link:
group_insights_path
(
group
),
link_to_options:
{
class:
'shortcuts-group-insights'
,
data:
{
qa_selector:
'group_insights_link'
,
priority:
priority
}
}
link_to_options:
{
class:
'shortcuts-group-insights'
,
data:
{
qa_selector:
'group_insights_link'
}
}
)
end
def
issues_analytics_navbar_link
(
group
,
current_user
,
priority
=
0
)
def
issues_analytics_navbar_link
(
group
,
current_user
)
return
unless
group_sidebar_link?
(
:analytics
)
navbar_sub_item
(
title:
_
(
'Issues'
),
path:
'issues_analytics#show'
,
link:
group_issues_analytics_path
(
group
),
link_to_options:
{
data:
{
priority:
priority
}
}
link:
group_issues_analytics_path
(
group
)
)
end
...
...
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