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
afcda5f4
Commit
afcda5f4
authored
Sep 14, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix EE specific nav items not having active state
parent
1ab15ba2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+4
-4
No files found.
app/views/layouts/nav/sidebar/_project.html.haml
View file @
afcda5f4
...
...
@@ -35,7 +35,7 @@
%span
=
_
(
'Cycle Analytics'
)
-
if
project_nav_tab?
:files
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare projects/repositories tags branches releases graphs network)
)
do
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare projects/repositories tags branches releases graphs network
path_locks
)
)
do
=
sidebar_link
project_tree_path
(
@project
),
title:
_
(
'Repository'
),
css:
'shortcuts-tree'
do
.nav-icon-container
=
custom_icon
(
'doc_text'
)
...
...
@@ -43,7 +43,7 @@
Repository
%ul
.sidebar-sub-level-items
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare projects/repositories tags branches releases graphs network)
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
nav_link
(
controller:
%w(tree blob blame edit_tree new_tree find_file commit commits compare projects/repositories tags branches releases graphs network
path_locks
)
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
link_to
project_tree_path
(
@project
)
do
%strong
.fly-out-top-item-name
#{
_
(
'Repository'
)
}
...
...
@@ -245,7 +245,7 @@
#{
_
(
'Snippets'
)
}
-
if
project_nav_tab?
:settings
=
nav_link
(
path:
%w[projects#edit project_members#index integrations#show services#edit repository#show ci_cd#show pages#show]
)
do
=
nav_link
(
path:
%w[projects#edit project_members#index integrations#show services#edit repository#show ci_cd#show pages#show
audit_events#index
]
)
do
=
sidebar_link
edit_project_path
(
@project
),
title:
_
(
'Settings'
),
css:
'shortcuts-tree'
do
.nav-icon-container
=
custom_icon
(
'settings'
)
...
...
@@ -255,7 +255,7 @@
%ul
.sidebar-sub-level-items
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
-
if
can_edit
=
nav_link
(
path:
%w[projects#edit project_members#index integrations#show services#edit repository#show ci_cd#show pages#show]
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
nav_link
(
path:
%w[projects#edit project_members#index integrations#show services#edit repository#show ci_cd#show pages#show
audit_events#index
]
,
html_options:
{
class:
"fly-out-top-item"
}
)
do
=
link_to
edit_project_path
(
@project
)
do
%strong
.fly-out-top-item-name
#{
_
(
'Settings'
)
}
...
...
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