Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
acaf13d6
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 搜索 >>
提交
acaf13d6
编写于
7月 20, 2017
作者:
S
Shinya Maeda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Add an id for the tag(#registration_token). Wrap long lines.
上级
03c72d71
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
9 addition
and
5 deletion
+9
-5
app/views/admin/runners/index.html.haml
app/views/admin/runners/index.html.haml
+3
-1
app/views/ci/runner/_how_to_setup_runner.html.haml
app/views/ci/runner/_how_to_setup_runner.html.haml
+1
-1
app/views/projects/runners/_specific_runners.html.haml
app/views/projects/runners/_specific_runners.html.haml
+3
-1
spec/features/admin/admin_runners_spec.rb
spec/features/admin/admin_runners_spec.rb
+2
-2
未找到文件。
app/views/admin/runners/index.html.haml
浏览文件 @
acaf13d6
...
...
@@ -35,7 +35,9 @@
method: :put
,
class:
'btn btn-default'
,
data:
{
confirm:
_
(
"Are you sure you want to reset registration token?"
)
}
=
render
partial:
'ci/runner/how_to_setup_runner'
,
locals:
{
registration_token:
current_application_settings
.
runners_registration_token
,
type:
'shared'
}
=
render
partial:
'ci/runner/how_to_setup_runner'
,
locals:
{
registration_token:
current_application_settings
.
runners_registration_token
,
type:
'shared'
}
.append-bottom-20.clearfix
.pull-left
...
...
app/views/ci/runner/_how_to_setup_runner.html.haml
浏览文件 @
acaf13d6
...
...
@@ -9,7 +9,7 @@
%li
=
_
(
"Specify the following URL during the Runner setup:"
)
%code
=
root_url
(
only_path:
false
)
%li
%li
#registration_token
=
_
(
"Use the following registration token during setup:"
)
%code
=
registration_token
%li
...
...
app/views/projects/runners/_specific_runners.html.haml
浏览文件 @
acaf13d6
%h3
Specific Runners
=
render
partial:
'ci/runner/how_to_setup_runner'
,
locals:
{
registration_token:
@project
.
runners_token
,
type:
'specific'
}
=
render
partial:
'ci/runner/how_to_setup_runner'
,
locals:
{
registration_token:
@project
.
runners_token
,
type:
'specific'
}
-
if
@project_runners
.
any?
%h4
.underlined-title
Runners activated for this project
...
...
spec/features/admin/admin_runners_spec.rb
浏览文件 @
acaf13d6
...
...
@@ -163,11 +163,11 @@ describe "Admin Runners" do
end
it
'has a registration token'
do
expect
(
page
.
find
(
'
.help-callout li:nth-of-type(3)
'
)).
to
have_content
(
token
)
expect
(
page
.
find
(
'
#registration_token
'
)).
to
have_content
(
token
)
end
describe
'reload registration token'
do
let
(
:page_token
)
{
find
(
'
.help-callout li:nth-of-type(3)
code'
).
text
}
let
(
:page_token
)
{
find
(
'
#registration_token
code'
).
text
}
before
do
click_button
'Reset runners registration token'
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录