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
15c33235
Commit
15c33235
authored
Aug 31, 2017
by
Simon Knox
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feature check new sidebar boards link
parent
293aee2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
34 additions
and
5 deletions
+34
-5
app/views/layouts/nav/_new_group_sidebar.html.haml
app/views/layouts/nav/_new_group_sidebar.html.haml
+9
-5
spec/ee/spec/views/layouts/nav/_new_group_sidebar.html.haml_spec.rb
...ec/views/layouts/nav/_new_group_sidebar.html.haml_spec.rb
+25
-0
No files found.
app/views/layouts/nav/_new_group_sidebar.html.haml
View file @
15c33235
-
issues_sub_menu_items
=
[
'groups#issues'
,
'labels#index'
,
'milestones#index'
]
-
if
@group
.
feature_available?
(
:group_issue_boards
)
-
issues_sub_menu_items
.
push
(
'boards#index'
)
.nav-sidebar
{
class:
(
"sidebar-icons-only"
if
collapsed_sidebar?
)
}
.nav-sidebar-inner-scroll
.context-header
...
...
@@ -31,7 +34,7 @@
%span
Contribution Analytics
=
nav_link
(
path:
[
'groups#issues'
,
'boards#index'
,
'labels#index'
,
'milestones#index'
]
)
do
=
nav_link
(
path:
issues_sub_menu_items
)
do
=
link_to
issues_group_path
(
@group
),
title:
'Issues'
do
.nav-icon-container
=
custom_icon
(
'issues'
)
...
...
@@ -46,10 +49,11 @@
%span
List
=
nav_link
(
path:
'boards#index'
)
do
=
link_to
group_boards_path
(
@group
),
title:
'Boards'
do
%span
Boards
-
if
@group
.
feature_available?
(
:group_issue_boards
)
=
nav_link
(
path:
'boards#index'
)
do
=
link_to
group_boards_path
(
@group
),
title:
'Boards'
do
%span
Boards
=
nav_link
(
path:
'labels#index'
)
do
=
link_to
group_labels_path
(
@group
),
title:
'Labels'
do
...
...
spec/ee/spec/views/layouts/nav/_new_group_sidebar.html.haml_spec.rb
0 → 100644
View file @
15c33235
require
'spec_helper'
describe
'layouts/nav/_new_group_sidebar'
do
before
do
assign
(
:group
,
create
(
:group
))
end
describe
'group issue boards link'
do
it
'is not visible when there is no valid license'
do
stub_licensed_features
(
group_issue_boards:
false
)
render
expect
(
rendered
).
not_to
have_text
'Boards'
end
it
'is not visible when there is no valid license'
do
stub_licensed_features
(
group_issue_boards:
true
)
render
expect
(
rendered
).
to
have_text
'Boards'
end
end
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