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
Tatuya Kamada
gitlab-ce
Commits
f870857d
Commit
f870857d
authored
Mar 24, 2016
by
Phil Hughes
Committed by
Jacob Schatz
Apr 12, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Updated tests
parent
dca50ac1
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+1
-1
app/views/layouts/project.html.haml
app/views/layouts/project.html.haml
+1
-1
spec/features/projects_spec.rb
spec/features/projects_spec.rb
+1
-2
No files found.
app/helpers/projects_helper.rb
View file @
f870857d
...
@@ -65,7 +65,7 @@ module ProjectsHelper
...
@@ -65,7 +65,7 @@ module ProjectsHelper
link_to
(
simple_sanitize
(
owner
.
name
),
user_path
(
owner
))
link_to
(
simple_sanitize
(
owner
.
name
),
user_path
(
owner
))
end
end
project_link
=
link_to
simple_sanitize
(
project
.
name
),
project_path
(
project
),
{
class:
"project-item-select-holder"
}
project_link
=
link_to
simple_sanitize
(
project
.
name
),
project_path
(
project
),
{
class:
"project-item-select-holder"
}
project_link
+=
icon
"chevron-down"
,
class:
"dropdown-toggle-caret js-projects-dropdown-toggle"
,
data:
{
target:
".header-content"
,
toggle:
"dropdown"
}
if
current_user
project_link
+=
icon
"chevron-down"
,
class:
"dropdown-toggle-caret js-projects-dropdown-toggle"
,
data:
{
target:
".header-content"
,
toggle:
"dropdown"
}
if
current_user
full_title
=
namespace_link
+
' / '
+
project_link
full_title
=
namespace_link
+
' / '
+
project_link
...
...
app/views/layouts/project.html.haml
View file @
f870857d
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
=
render
"layouts/init_auto_complete"
if
current_user
=
render
"layouts/init_auto_complete"
if
current_user
-
content_for
:header_content
do
-
content_for
:header_content
do
.dropdown-menu.dropdown-select
.dropdown-menu.dropdown-select
.dropdown-menu-projects
=
dropdown_title
(
"Go to a project"
)
=
dropdown_title
(
"Go to a project"
)
=
dropdown_filter
(
"Search your projects"
)
=
dropdown_filter
(
"Search your projects"
)
=
dropdown_content
=
dropdown_content
...
...
spec/features/projects_spec.rb
View file @
f870857d
...
@@ -100,8 +100,7 @@ feature 'Project', feature: true do
...
@@ -100,8 +100,7 @@ feature 'Project', feature: true do
it
'click toggle and show dropdown'
,
js:
true
do
it
'click toggle and show dropdown'
,
js:
true
do
find
(
'.js-projects-dropdown-toggle'
).
click
find
(
'.js-projects-dropdown-toggle'
).
click
wait_for_ajax
expect
(
page
).
to
have_css
(
'.dropdown-menu-projects .dropdown-content li'
,
count:
1
)
expect
(
page
).
to
have_css
(
'.select2-results li'
,
count:
1
)
end
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