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
Kazuhiko Shiozaki
gitlab-ce
Commits
8ee6abaa
Commit
8ee6abaa
authored
Dec 28, 2015
by
Jacob Schatz
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixes tests failing
parent
eb162c2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
app/views/projects/_home_panel.html.haml
app/views/projects/_home_panel.html.haml
+2
-2
spec/features/projects_spec.rb
spec/features/projects_spec.rb
+4
-1
No files found.
app/views/projects/_home_panel.html.haml
View file @
8ee6abaa
...
...
@@ -25,7 +25,7 @@
-
can_edit
=
can?
(
current_user
,
:admin_project
,
@project
)
-
if
access
||
can_edit
%span
.dropdown.project-settings-dropdown
%a
.dropdown-new.btn.btn-gray
.notifications-btn
#notification
s-button
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
%a
.dropdown-new.btn.btn-gray
#project-setting
s-button
{
href:
'#'
,
'data-toggle'
=>
'dropdown'
}
=
icon
(
'cog'
)
=
icon
(
'angle-down'
)
%ul
.dropdown-menu.dropdown-menu-right
...
...
@@ -37,7 +37,7 @@
%li
=
link_to
leave_namespace_project_project_members_path
(
@project
.
namespace
,
@project
),
data:
{
confirm:
leave_project_message
(
@project
)
},
method: :delete
,
title:
'Leave project'
do
Leave
p
roject
Leave
P
roject
.project-repo-buttons
.split-one.count-buttons
...
...
spec/features/projects_spec.rb
View file @
8ee6abaa
...
...
@@ -81,7 +81,10 @@ feature 'Project', feature: true do
end
it
{
expect
(
page
).
to
have_content
(
'You have Master access to this project.'
)
}
it
{
expect
(
page
).
to
have_link
(
'Leave this project'
)
}
it
{
find
(
'#project-settings'
).
click
expect
(
page
).
to
have_link
(
'Leave Project'
)
}
end
def
remove_with_confirm
(
button_text
,
confirm_with
)
...
...
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