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
0
Merge Requests
0
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
Boxiang Sun
gitlab-ce
Commits
360b60be
Commit
360b60be
authored
Sep 13, 2017
by
Phil Hughes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
CE backport of new-sidebar-boards
parent
9c9b1774
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
8 deletions
+24
-8
app/helpers/boards_helper.rb
app/helpers/boards_helper.rb
+4
-0
app/views/layouts/nav/sidebar/_project.html.haml
app/views/layouts/nav/sidebar/_project.html.haml
+2
-2
spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
+18
-6
No files found.
app/helpers/boards_helper.rb
View file @
360b60be
...
...
@@ -77,4 +77,8 @@ module BoardsHelper
'max-select'
:
dropdown_options
[
:data
][
:'max-select'
]
}
end
def
boards_link_text
_
(
"Board"
)
end
end
app/views/layouts/nav/sidebar/_project.html.haml
View file @
360b60be
...
...
@@ -114,9 +114,9 @@
List
=
nav_link
(
controller: :boards
)
do
=
link_to
project_boards_path
(
@project
),
title:
'Board'
do
=
link_to
project_boards_path
(
@project
),
title:
boards_link_text
do
%span
Board
=
boards_link_text
.feature-highlight.js-feature-highlight
{
disabled:
true
,
data:
{
trigger:
'manual'
,
container:
'body'
,
toggle:
'popover'
,
placement:
'right'
,
highlight:
'issue-boards'
}
}
.feature-highlight-popover-content
=
render
'feature_highlight/issue_boards.svg'
...
...
spec/views/layouts/nav/sidebar/_project.html.haml_spec.rb
View file @
360b60be
require
'spec_helper'
describe
'layouts/nav/sidebar/_project'
do
describe
'container registry tab'
do
before
do
project
=
create
(
:project
,
:repository
)
stub_container_registry_config
(
enabled:
true
)
let
(
:project
)
{
create
(
:project
,
:repository
)
}
before
do
assign
(
:project
,
project
)
assign
(
:repository
,
project
.
repository
)
allow
(
view
).
to
receive
(
:current_ref
).
and_return
(
'master'
)
allow
(
view
).
to
receive
(
:can?
).
and_return
(
true
)
end
describe
'issue boards'
do
it
'has boards tab when multiple issue boards available'
do
render
expect
(
rendered
).
to
have_css
(
'a[title="Board"]'
)
end
end
describe
'container registry tab'
do
before
do
stub_container_registry_config
(
enabled:
true
)
allow
(
controller
).
to
receive
(
:controller_name
)
.
and_return
(
'repositories'
)
allow
(
controller
).
to
receive
(
:controller_path
)
...
...
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