Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
26b0fe8d
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,发现更多精彩内容 >>
未验证
提交
26b0fe8d
编写于
11月 22, 2016
作者:
A
Annabel Dunstone Gray
提交者:
Luke "Jared" Bennett
12月 10, 2016
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Align permissions options
上级
63c3ba7a
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
49 addition
and
56 deletion
+49
-56
app/assets/javascripts/visibility_select.js.es6
app/assets/javascripts/visibility_select.js.es6
+1
-1
app/assets/stylesheets/pages/projects.scss
app/assets/stylesheets/pages/projects.scss
+15
-21
app/views/projects/edit.html.haml
app/views/projects/edit.html.haml
+33
-34
未找到文件。
app/assets/javascripts/visibility_select.js.es6
浏览文件 @
26b0fe8d
...
...
@@ -3,7 +3,7 @@
const VISIBILITY_DESCRIPTIONS = {
0: 'Project access must be granted explicitly to each user.',
10: '
Project access must be granted explicitly to each
user.',
10: '
This project can be cloned by any logged in
user.',
20: 'The project can be cloned without any authentication.',
};
...
...
app/assets/stylesheets/pages/projects.scss
浏览文件 @
26b0fe8d
...
...
@@ -15,29 +15,17 @@
.new_project
,
.edit-project
{
.visibility-select-container
{
padding-left
:
26px
;
@media
(
max-width
:
$screen-md-min
)
{
padding-left
:
15px
;
.sharing-and-permissions
{
.header
{
padding-top
:
$gl-vert-padding
;
}
}
fieldset
{
&
.features
{
.header
{
padding-top
:
$gl-vert-padding
;
}
.label-light
{
margin-bottom
:
0
;
}
.label-light
{
margin-bottom
:
0
;
}
.help-block
{
margin-top
:
0
;
}
.help-block
{
margin-top
:
0
;
}
.form-group
{
...
...
@@ -876,10 +864,16 @@ pre.light-well {
}
}
.project-feature
-nested
{
.project-feature
{
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
45px
;
}
&
.nested
{
@media
(
min-width
:
$screen-sm-min
)
{
padding-left
:
90px
;
}
}
}
.project-repo-select
{
...
...
app/views/projects/edit.html.haml
浏览文件 @
26b0fe8d
...
...
@@ -29,7 +29,7 @@
%fieldset
.append-bottom-0
%h5
.prepend-top-0
Sharing
&
Permissions
.form_group.prepend-top-20
.form_group.prepend-top-20
.sharing-and-permissions
.row.js-visibility-select
.col-md-9
%label
.label-light
...
...
@@ -40,48 +40,47 @@
=
render
(
'shared/visibility_select'
,
model_method: :visibility_level
,
form:
f
,
selected_level:
@project
.
visibility_level
)
=
f
.
fields_for
:project_feature
do
|
feature_fields
|
%fieldset
.features
.row
.project-feature-nested
.col-md-9.
header
.row
.col-md-9.
project-feature
=
feature_fields
.
label
:repository_access_level
,
"Repository"
,
class:
'label-light'
%span
.help-block
Push files to be stored in this project
.col-md-3.js-repo-access-level
=
project_feature_access_select
(
:repository_access_level
)
.col-sm-12
.row.project-feature-nested
.col-md-9.header
=
feature_fields
.
label
:merge_requests_access_level
,
"Merge requests"
,
class:
'label-light'
%span
.help-block
Submit changes to be merged upstream
.col-md-3
=
project_feature_access_select
(
:merge_requests_access_level
)
.row
.col-md-9.project-feature.nested
=
feature_fields
.
label
:merge_requests_access_level
,
"Merge requests"
,
class:
'label-light'
%span
.help-block
Submit changes to be merged upstream
.col-md-3
=
project_feature_access_select
(
:merge_requests_access_level
)
.row.project-feature-nested
.col-md-9.header
=
feature_fields
.
label
:builds_access_level
,
"Builds"
,
class:
'label-light'
%span
.help-block
Submit, test and deploy your changes before merge
.col-md-3.double-nested
=
project_feature_access_select
(
:builds_access_level
)
.row
.col-md-9.project-feature.nested
=
feature_fields
.
label
:builds_access_level
,
"Builds"
,
class:
'label-light'
%span
.help-block
Submit, test and deploy your changes before merge
.col-md-3
=
project_feature_access_select
(
:builds_access_level
)
.row
.col-md-9.header
=
feature_fields
.
label
:snippets_access_level
,
"Snippets"
,
class:
'label-light'
%span
.help-block
Share code pastes with others out of Git repository
.col-md-3
=
project_feature_access_select
(
:snippets_access_level
)
.row
.col-md-9.project-feature
=
feature_fields
.
label
:snippets_access_level
,
"Snippets"
,
class:
'label-light'
%span
.help-block
Share code pastes with others out of Git repository
.col-md-3
=
project_feature_access_select
(
:snippets_access_level
)
.row
.col-md-9.header
=
feature_fields
.
label
:issues_access_level
,
"Issues"
,
class:
'label-light'
%span
.help-block
Lightweight issue tracking system for this project
.col-md-3
=
project_feature_access_select
(
:issues_access_level
)
.row
.col-md-9.project-feature
=
feature_fields
.
label
:issues_access_level
,
"Issues"
,
class:
'label-light'
%span
.help-block
Lightweight issue tracking system for this project
.col-md-3
=
project_feature_access_select
(
:issues_access_level
)
.row
.col-md-9.header
=
feature_fields
.
label
:wiki_access_level
,
"Wiki"
,
class:
'label-light'
%span
.help-block
Pages for project documentation
.col-md-3
=
project_feature_access_select
(
:wiki_access_level
)
.row
.col-md-9.project-feature
=
feature_fields
.
label
:wiki_access_level
,
"Wiki"
,
class:
'label-light'
%span
.help-block
Pages for project documentation
.col-md-3
=
project_feature_access_select
(
:wiki_access_level
)
.form-group
=
render
'shared/allow_request_access'
,
form:
f
-
if
Gitlab
.
config
.
lfs
.
enabled
&&
current_user
.
admin?
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录