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
00d7bfda
Commit
00d7bfda
authored
Jan 19, 2012
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
projects link added. security specs added
parent
15c46555
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
55 additions
and
31 deletions
+55
-31
app/assets/images/Storage-UI.PNG
app/assets/images/Storage-UI.PNG
+0
-0
app/views/deploy_keys/index.html.haml
app/views/deploy_keys/index.html.haml
+6
-0
app/views/layouts/_head_panel.html.haml
app/views/layouts/_head_panel.html.haml
+2
-2
spec/requests/projects_deploy_keys_spec.rb
spec/requests/projects_deploy_keys_spec.rb
+1
-1
spec/requests/projects_security_spec.rb
spec/requests/projects_security_spec.rb
+45
-0
spec/requests/tags_spec.rb
spec/requests/tags_spec.rb
+0
-27
spec/requests/team_members_spec.rb
spec/requests/team_members_spec.rb
+1
-1
No files found.
app/assets/images/Storage-UI.PNG
0 → 100644
View file @
00d7bfda
737 Bytes
app/views/deploy_keys/index.html.haml
View file @
00d7bfda
...
@@ -5,6 +5,12 @@
...
@@ -5,6 +5,12 @@
-
@keys
.
each
do
|
key
|
-
@keys
.
each
do
|
key
|
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
=
render
(
:partial
=>
'show'
,
:locals
=>
{
:key
=>
key
})
-
if
@keys
.
blank?
.notice_holder
%li
Deploy Keys do not exist yet.
-
if
can?
current_user
,
:admin_project
,
@project
%li
You can add a new one by clicking on plus icon
:javascript
:javascript
$
(
'
.delete-key
'
).
live
(
'
ajax:success
'
,
function
()
{
$
(
'
.delete-key
'
).
live
(
'
ajax:success
'
,
function
()
{
$
(
this
).
closest
(
'
.update-item
'
).
fadeOut
();
});
$
(
this
).
closest
(
'
.update-item
'
).
fadeOut
();
});
...
...
app/views/layouts/_head_panel.html.haml
View file @
00d7bfda
...
@@ -5,8 +5,8 @@
...
@@ -5,8 +5,8 @@
%div
.main_links
%div
.main_links
=
link_to
root_path
,
:class
=>
"home"
,
:title
=>
"Home"
do
=
link_to
root_path
,
:class
=>
"home"
,
:title
=>
"Home"
do
=
image_tag
"Home-UI.PNG"
=
image_tag
"Home-UI.PNG"
=
link_to
:back
,
:title
=>
"Back
"
do
=
link_to
projects_path
,
:title
=>
"Projects
"
do
=
image_tag
"
Arrow-Left
-UI.PNG"
=
image_tag
"
Storage
-UI.PNG"
-
if
project_layout
-
if
project_layout
.project_name
.project_name
...
...
spec/requests/projects_deploy_keys_spec.rb
View file @
00d7bfda
...
@@ -29,7 +29,7 @@ describe "Projects", "DeployKeys" do
...
@@ -29,7 +29,7 @@ describe "Projects", "DeployKeys" do
end
end
end
end
describe
"New key"
,
:js
=>
true
do
describe
"New key"
do
before
do
before
do
visit
project_deploy_keys_path
(
project
)
visit
project_deploy_keys_path
(
project
)
click_link
"New Deploy Key"
click_link
"New Deploy Key"
...
...
spec/requests/projects_security_spec.rb
View file @
00d7bfda
...
@@ -140,5 +140,50 @@ describe "Projects" do
...
@@ -140,5 +140,50 @@ describe "Projects" do
it
{
project_merge_requests_path
(
@project
).
should
be_denied_for
:user
}
it
{
project_merge_requests_path
(
@project
).
should
be_denied_for
:user
}
it
{
project_merge_requests_path
(
@project
).
should
be_denied_for
:visitor
}
it
{
project_merge_requests_path
(
@project
).
should
be_denied_for
:visitor
}
end
end
describe
"GET /project_code/repository"
do
it
{
project_repository_path
(
@project
).
should
be_allowed_for
@u1
}
it
{
project_repository_path
(
@project
).
should
be_allowed_for
@u3
}
it
{
project_repository_path
(
@project
).
should
be_denied_for
:admin
}
it
{
project_repository_path
(
@project
).
should
be_denied_for
@u2
}
it
{
project_repository_path
(
@project
).
should
be_denied_for
:user
}
it
{
project_repository_path
(
@project
).
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/repository/branches"
do
it
{
branches_project_repository_path
(
@project
).
should
be_allowed_for
@u1
}
it
{
branches_project_repository_path
(
@project
).
should
be_allowed_for
@u3
}
it
{
branches_project_repository_path
(
@project
).
should
be_denied_for
:admin
}
it
{
branches_project_repository_path
(
@project
).
should
be_denied_for
@u2
}
it
{
branches_project_repository_path
(
@project
).
should
be_denied_for
:user
}
it
{
branches_project_repository_path
(
@project
).
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/repository/tags"
do
it
{
tags_project_repository_path
(
@project
).
should
be_allowed_for
@u1
}
it
{
tags_project_repository_path
(
@project
).
should
be_allowed_for
@u3
}
it
{
tags_project_repository_path
(
@project
).
should
be_denied_for
:admin
}
it
{
tags_project_repository_path
(
@project
).
should
be_denied_for
@u2
}
it
{
tags_project_repository_path
(
@project
).
should
be_denied_for
:user
}
it
{
tags_project_repository_path
(
@project
).
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/hooks"
do
it
{
project_hooks_path
(
@project
).
should
be_allowed_for
@u1
}
it
{
project_hooks_path
(
@project
).
should
be_allowed_for
@u3
}
it
{
project_hooks_path
(
@project
).
should
be_denied_for
:admin
}
it
{
project_hooks_path
(
@project
).
should
be_denied_for
@u2
}
it
{
project_hooks_path
(
@project
).
should
be_denied_for
:user
}
it
{
project_hooks_path
(
@project
).
should
be_denied_for
:visitor
}
end
describe
"GET /project_code/files"
do
it
{
files_project_path
(
@project
).
should
be_allowed_for
@u1
}
it
{
files_project_path
(
@project
).
should
be_allowed_for
@u3
}
it
{
files_project_path
(
@project
).
should
be_denied_for
:admin
}
it
{
files_project_path
(
@project
).
should
be_denied_for
@u2
}
it
{
files_project_path
(
@project
).
should
be_denied_for
:user
}
it
{
files_project_path
(
@project
).
should
be_denied_for
:visitor
}
end
end
end
end
end
spec/requests/tags_spec.rb
deleted
100644 → 0
View file @
15c46555
require
'spec_helper'
describe
"Tags"
do
before
{
login_as
:user
}
# describe "GET 'tags/index'" do
# it "should be successful" do
# get 'tags/index'
# response.should be_success
# end
# end
describe
"GET '/tags.json'"
do
before
do
@project
=
Factory
:project
@project
.
add_access
(
@user
,
:read
)
@project
.
tag_list
=
'demo1'
@project
.
save
visit
'/tags.json'
end
it
"should contains tags"
do
page
.
should
have_content
(
'demo1'
)
end
end
end
spec/requests/team_members_spec.rb
View file @
00d7bfda
...
@@ -18,7 +18,7 @@ describe "TeamMembers" do
...
@@ -18,7 +18,7 @@ describe "TeamMembers" do
end
end
end
end
describe
"New Team member"
,
:js
=>
true
do
describe
"New Team member"
do
before
do
before
do
@user_1
=
Factory
:user
@user_1
=
Factory
:user
visit
team_project_path
(
@project
)
visit
team_project_path
(
@project
)
...
...
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