Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
763e14c3
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,发现更多精彩内容 >>
提交
763e14c3
编写于
4月 11, 2018
作者:
C
Clement Ho
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
[skip ci] Replace .radio with .form-check
上级
df8aa61a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
12 addition
and
12 deletion
+12
-12
app/assets/javascripts/project_visibility.js
app/assets/javascripts/project_visibility.js
+1
-1
app/views/admin/application_settings/_signup.html.haml
app/views/admin/application_settings/_signup.html.haml
+2
-2
app/views/projects/_merge_request_fast_forward_settings.html.haml
...s/projects/_merge_request_fast_forward_settings.html.haml
+1
-1
app/views/projects/_merge_request_rebase_settings.html.haml
app/views/projects/_merge_request_rebase_settings.html.haml
+1
-1
app/views/projects/_merge_request_settings.html.haml
app/views/projects/_merge_request_settings.html.haml
+1
-1
app/views/projects/settings/ci_cd/_form.html.haml
app/views/projects/settings/ci_cd/_form.html.haml
+5
-5
app/views/shared/_visibility_radios.html.haml
app/views/shared/_visibility_radios.html.haml
+1
-1
未找到文件。
app/assets/javascripts/project_visibility.js
浏览文件 @
763e14c3
...
...
@@ -7,7 +7,7 @@ function setVisibilityOptions(namespaceSelector) {
const
selectedNamespace
=
namespaceSelector
.
options
[
namespaceSelector
.
selectedIndex
];
const
{
name
,
visibility
,
visibilityLevel
,
showPath
,
editPath
}
=
selectedNamespace
.
dataset
;
document
.
querySelectorAll
(
'
.visibility-level-setting .
radio
'
).
forEach
((
option
)
=>
{
document
.
querySelectorAll
(
'
.visibility-level-setting .
form-check
'
).
forEach
((
option
)
=>
{
const
optionInput
=
option
.
querySelector
(
'
input[type=radio]
'
);
const
optionValue
=
optionInput
?
optionInput
.
value
:
0
;
const
optionTitle
=
option
.
querySelector
(
'
.option-title
'
);
...
...
app/views/admin/application_settings/_signup.html.haml
浏览文件 @
763e14c3
...
...
@@ -28,12 +28,12 @@
Enable domain blacklist for sign ups
.form-group
.col-sm-offset-2.col-sm-10
.
radio
.
form-check
=
label_tag
:blacklist_type_file
do
=
radio_button_tag
:blacklist_type
,
:file
.option-title
Upload blacklist file
.
radio
.
form-check
=
label_tag
:blacklist_type_raw
do
=
radio_button_tag
:blacklist_type
,
:raw
,
@application_setting
.
domain_blacklist
.
present?
||
@application_setting
.
domain_blacklist
.
blank?
.option-title
...
...
app/views/projects/_merge_request_fast_forward_settings.html.haml
浏览文件 @
763e14c3
-
form
=
local_assigns
.
fetch
(
:form
)
-
project
=
local_assigns
.
fetch
(
:project
)
.
radio
.
form-check
=
label_tag
:project_merge_method_ff
do
=
form
.
radio_button
:merge_method
,
:ff
,
class:
"js-merge-method-radio qa-radio-button-merge-ff"
%strong
Fast-forward merge
...
...
app/views/projects/_merge_request_rebase_settings.html.haml
浏览文件 @
763e14c3
-
form
=
local_assigns
.
fetch
(
:form
)
.
radio
.
form-check
=
label_tag
:project_merge_method_rebase_merge
do
=
form
.
radio_button
:merge_method
,
:rebase_merge
,
class:
"js-merge-method-radio"
%strong
Merge commit with semi-linear history
...
...
app/views/projects/_merge_request_settings.html.haml
浏览文件 @
763e14c3
...
...
@@ -3,7 +3,7 @@
.form-group
=
label_tag
:merge_method_merge
,
class:
'label-light'
do
Merge method
.
radio
.
form-check
=
label_tag
:project_merge_method_merge
do
=
form
.
radio_button
:merge_method
,
:merge
,
class:
"js-merge-method-radio"
%strong
Merge commit
...
...
app/views/projects/settings/ci_cd/_form.html.haml
浏览文件 @
763e14c3
...
...
@@ -13,7 +13,7 @@
%p
.settings-message.text-center
=
message
.
html_safe
=
f
.
fields_for
:auto_devops_attributes
,
@auto_devops
do
|
form
|
.
radio
.
form-check
=
form
.
label
:enabled_true
do
=
form
.
radio_button
:enabled
,
'true'
%strong
Enable Auto DevOps
...
...
@@ -21,7 +21,7 @@
%span
.descr
The Auto DevOps pipeline configuration will be used when there is no
<code>
.gitlab-ci.yml
</code>
in the project.
.
radio
.
form-check
=
form
.
label
:enabled_false
do
=
form
.
radio_button
:enabled
,
'false'
%strong
Disable Auto DevOps
...
...
@@ -29,7 +29,7 @@
%span
.descr
An explicit
<code>
.gitlab-ci.yml
</code>
needs to be specified before you can begin using Continuous Integration and Delivery.
.
radio
.
form-check
=
form
.
label
:enabled_
do
=
form
.
radio_button
:enabled
,
''
%strong
Instance default (
#{
Gitlab
::
CurrentSettings
.
auto_devops_enabled?
?
'enabled'
:
'disabled'
}
)
...
...
@@ -57,14 +57,14 @@
%p
Choose between
<code>
clone
</code>
or
<code>
fetch
</code>
to get the recent application code
=
link_to
icon
(
'question-circle'
),
help_page_path
(
'user/project/pipelines/settings'
,
anchor:
'git-strategy'
),
target:
'_blank'
.
radio
.
form-check
=
f
.
label
:build_allow_git_fetch_false
do
=
f
.
radio_button
:build_allow_git_fetch
,
'false'
%strong
git clone
%br
%span
.descr
Slower but makes sure the project workspace is pristine as it clones the repository from scratch for every job
.
radio
.
form-check
=
f
.
label
:build_allow_git_fetch_true
do
=
f
.
radio_button
:build_allow_git_fetch
,
'true'
%strong
git fetch
...
...
app/views/shared/_visibility_radios.html.haml
浏览文件 @
763e14c3
...
...
@@ -2,7 +2,7 @@
-
disallowed
=
disallowed_visibility_level?
(
form_model
,
level
)
-
restricted
=
restricted_visibility_levels
.
include?
(
level
)
-
disabled
=
disallowed
||
restricted
.
radio
{
class:
[(
'disabled'
if
disabled
),
(
'restricted'
if
restricted
)]
}
.
form-check
{
class:
[(
'disabled'
if
disabled
),
(
'restricted'
if
restricted
)]
}
=
form
.
label
"
#{
model_method
}
_
#{
level
}
"
do
=
form
.
radio_button
model_method
,
level
,
checked:
(
selected_level
==
level
),
disabled:
disabled
=
visibility_level_icon
(
level
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录