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
6a8b04f4
Commit
6a8b04f4
authored
Nov 09, 2017
by
Clement Ho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add active highlight for nav item
parent
b03aa736
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
app/views/layouts/nav/sidebar/_group.html.haml
app/views/layouts/nav/sidebar/_group.html.haml
+3
-2
No files found.
app/views/layouts/nav/sidebar/_group.html.haml
View file @
6a8b04f4
...
@@ -2,6 +2,7 @@
...
@@ -2,6 +2,7 @@
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
,
non_archived:
true
).
execute
-
merge_requests
=
MergeRequestsFinder
.
new
(
current_user
,
group_id:
@group
.
id
,
state:
'opened'
,
non_archived:
true
).
execute
-
epics
=
EpicsFinder
.
new
(
current_user
,
group_id:
@group
.
id
).
execute
-
epics
=
EpicsFinder
.
new
(
current_user
,
group_id:
@group
.
id
).
execute
-
epics_items
=
[
'epics#show'
,
'epics#index'
]
-
issues_sub_menu_items
=
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
]
-
issues_sub_menu_items
=
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
]
-
if
@group
.
feature_available?
(
:group_issue_boards
)
-
if
@group
.
feature_available?
(
:group_issue_boards
)
-
issues_sub_menu_items
.
push
(
'boards#index'
,
'boards#show'
)
-
issues_sub_menu_items
.
push
(
'boards#index'
,
'boards#show'
)
...
@@ -45,7 +46,7 @@
...
@@ -45,7 +46,7 @@
Contribution Analytics
Contribution Analytics
-# TODO: Add the flag check to only show epics if available
-# TODO: Add the flag check to only show epics if available
=
nav_link
(
path:
'groups#epics'
)
do
=
nav_link
(
path:
epics_items
)
do
=
link_to
group_epics_path
(
@group
)
do
=
link_to
group_epics_path
(
@group
)
do
.nav-icon-container
.nav-icon-container
=
sprite_icon
(
'epic'
)
=
sprite_icon
(
'epic'
)
...
@@ -53,7 +54,7 @@
...
@@ -53,7 +54,7 @@
Epics
Epics
%span
.badge.count
=
number_with_delimiter
(
epics
.
count
)
%span
.badge.count
=
number_with_delimiter
(
epics
.
count
)
%ul
.sidebar-sub-level-items.is-fly-out-only
%ul
.sidebar-sub-level-items.is-fly-out-only
=
nav_link
(
path:
'groups#epics'
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
nav_link
(
path:
epics_items
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
link_to
group_epics_path
(
@group
)
do
=
link_to
group_epics_path
(
@group
)
do
%strong
.fly-out-top-item-name
%strong
.fly-out-top-item-name
#{
_
(
'Epics'
)
}
#{
_
(
'Epics'
)
}
...
...
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