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
Jérome Perrin
gitlab-ce
Commits
19950d60
Commit
19950d60
authored
May 31, 2017
by
Tim Zallmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing more broken unscoped tests
parent
73b64f1f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
4 deletions
+6
-4
app/views/layouts/header/_new_dropdown.haml
app/views/layouts/header/_new_dropdown.haml
+3
-3
spec/features/admin/admin_groups_spec.rb
spec/features/admin/admin_groups_spec.rb
+3
-1
No files found.
app/views/layouts/header/_new_dropdown.haml
View file @
19950d60
...
...
@@ -3,7 +3,7 @@
=
icon
(
'plus fw'
)
=
icon
(
'caret-down'
)
.dropdown-menu-nav.dropdown-menu-align-right
%ul
%ul
-
if
@group
-
create_group_project
=
can?
(
current_user
,
:create_projects
,
@group
)
-
create_group_subgroup
=
can?
(
current_user
,
:create_subgroup
,
@group
)
...
...
@@ -18,13 +18,13 @@
%li
.divider
%li
.dropdown-bold-header
GitLab
-
if
@project
-
if
@project
&&
@project
.
namespace
-
create_project_issue
=
can?
(
current_user
,
:create_issue
,
@project
)
-
merge_project
=
can?
(
current_user
,
:create_merge_request
,
@project
)
?
@project
:
(
current_user
&&
current_user
.
fork_of
(
@project
))
-
create_project_snippet
=
can?
(
current_user
,
:create_project_snippet
,
@project
)
-
if
(
create_project_issue
||
merge_project
||
create_project_snippet
)
%li
.dropdown-bold-header
This project
-
if
create_project_issue
-
if
create_project_issue
%li
=
link_to
'New issue'
,
new_namespace_project_issue_path
(
@project
.
namespace
,
@project
)
-
if
merge_project
...
...
spec/features/admin/admin_groups_spec.rb
View file @
19950d60
...
...
@@ -24,7 +24,9 @@ feature 'Admin Groups', feature: true do
it
'creates new group'
do
visit
admin_groups_path
click_link
"New group"
page
.
within
'#content-body'
do
click_link
"New group"
end
path_component
=
'gitlab'
group_name
=
'GitLab group name'
group_description
=
'Description of group for GitLab'
...
...
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