Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
00d7bfda
G
gitlab-foss
项目概览
李少辉-开发者
/
gitlab-foss
通知
15
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
gitlab-foss
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
前往新版Gitcode,体验更适合开发者的 AI 搜索 >>
提交
00d7bfda
编写于
1月 19, 2012
作者:
D
Dmitriy Zaporozhets
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
projects link added. security specs added
上级
15c46555
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
55 addition
and
31 deletion
+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
未找到文件。
app/assets/images/Storage-UI.PNG
0 → 100644
浏览文件 @
00d7bfda
737 字节
app/views/deploy_keys/index.html.haml
浏览文件 @
00d7bfda
...
...
@@ -5,6 +5,12 @@
-
@keys
.
each
do
|
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
$
(
'
.delete-key
'
).
live
(
'
ajax:success
'
,
function
()
{
$
(
this
).
closest
(
'
.update-item
'
).
fadeOut
();
});
...
...
app/views/layouts/_head_panel.html.haml
浏览文件 @
00d7bfda
...
...
@@ -5,8 +5,8 @@
%div
.main_links
=
link_to
root_path
,
:class
=>
"home"
,
:title
=>
"Home"
do
=
image_tag
"Home-UI.PNG"
=
link_to
:back
,
:title
=>
"Back
"
do
=
image_tag
"
Arrow-Left
-UI.PNG"
=
link_to
projects_path
,
:title
=>
"Projects
"
do
=
image_tag
"
Storage
-UI.PNG"
-
if
project_layout
.project_name
...
...
spec/requests/projects_deploy_keys_spec.rb
浏览文件 @
00d7bfda
...
...
@@ -29,7 +29,7 @@ describe "Projects", "DeployKeys" do
end
end
describe
"New key"
,
:js
=>
true
do
describe
"New key"
do
before
do
visit
project_deploy_keys_path
(
project
)
click_link
"New Deploy Key"
...
...
spec/requests/projects_security_spec.rb
浏览文件 @
00d7bfda
...
...
@@ -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
:visitor
}
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
spec/requests/tags_spec.rb
已删除
100644 → 0
浏览文件 @
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
浏览文件 @
00d7bfda
...
...
@@ -18,7 +18,7 @@ describe "TeamMembers" do
end
end
describe
"New Team member"
,
:js
=>
true
do
describe
"New Team member"
do
before
do
@user_1
=
Factory
:user
visit
team_project_path
(
@project
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录