Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
ea75b727
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 搜索 >>
提交
ea75b727
编写于
10月 11, 2018
作者:
G
George Tsiolis
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update environments empty state
上级
9642a472
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
26 addition
and
20 deletion
+26
-20
app/assets/javascripts/environments/components/empty_state.vue
...ssets/javascripts/environments/components/empty_state.vue
+15
-14
changelogs/unreleased/gt-update-environments-empty-state.yml
changelogs/unreleased/gt-update-environments-empty-state.yml
+5
-0
locale/gitlab.pot
locale/gitlab.pot
+1
-1
spec/features/projects/environments/environments_spec.rb
spec/features/projects/environments/environments_spec.rb
+1
-1
spec/javascripts/environments/emtpy_state_spec.js
spec/javascripts/environments/emtpy_state_spec.js
+2
-2
spec/javascripts/environments/environments_app_spec.js
spec/javascripts/environments/environments_app_spec.js
+2
-2
未找到文件。
app/assets/javascripts/environments/components/empty_state.vue
浏览文件 @
ea75b727
...
...
@@ -18,27 +18,28 @@ export default {
};
</
script
>
<
template
>
<div
class=
"
blank-state-row
"
>
<div
class=
"
blank-state-center
"
>
<h
2
class=
"blank-state-title js-blank-state-title"
>
{{
s__
(
"
Environments|You don't have any environments right now
.
"
)
}}
</h
2
>
<div
class=
"
empty-state
"
>
<div
class=
"
text-content
"
>
<h
4
class=
"blank-state-title js-blank-state-title"
>
{{
s__
(
"
Environments|You don't have any environments right now
"
)
}}
</h
4
>
<p
class=
"blank-state-text"
>
{{
s__
(
`Environments|Environments are places where
code gets deployed, such as staging or production.`
)
}}
<br
/>
code gets deployed, such as staging or production.`
)
}}
<a
:href=
"helpPath"
>
{{
s__
(
"
Environments|Read more about environments
"
)
}}
</a>
</p>
<a
v-if=
"canCreateEnvironment"
:href=
"newPath"
class=
"btn btn-success js-new-environment-button"
>
{{
s__
(
"
Environments|New environment
"
)
}}
</a>
<div
class=
"text-center"
>
<a
v-if=
"canCreateEnvironment"
:href=
"newPath"
class=
"btn btn-success js-new-environment-button"
>
{{
s__
(
"
Environments|New environment
"
)
}}
</a>
</div>
</div>
</div>
</
template
>
changelogs/unreleased/gt-update-environments-empty-state.yml
0 → 100644
浏览文件 @
ea75b727
---
title
:
Update environments empty state
merge_request
:
22297
author
:
George Tsiolis
type
:
other
locale/gitlab.pot
浏览文件 @
ea75b727
...
...
@@ -2597,7 +2597,7 @@ msgstr ""
msgid "Environments|Updated"
msgstr ""
msgid "Environments|You don't have any environments right now
.
"
msgid "Environments|You don't have any environments right now"
msgstr ""
msgid "Epic"
...
...
spec/features/projects/environments/environments_spec.rb
浏览文件 @
ea75b727
...
...
@@ -95,7 +95,7 @@ describe 'Environments page', :js do
end
it
'does not show environments and counters are set to zero'
do
expect
(
page
).
to
have_content
(
'You don\'t have any environments right now
.
'
)
expect
(
page
).
to
have_content
(
'You don\'t have any environments right now'
)
expect
(
page
.
find
(
'.js-environments-tab-available .badge'
).
text
).
to
eq
(
'0'
)
expect
(
page
.
find
(
'.js-environments-tab-stopped .badge'
).
text
).
to
eq
(
'0'
)
...
...
spec/javascripts/environments/emtpy_state_spec.js
浏览文件 @
ea75b727
...
...
@@ -27,7 +27,7 @@ describe('environments empty state', () => {
it
(
'
renders empty state and new environment button
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-blank-state-title
'
).
textContent
.
trim
(),
).
toEqual
(
'
You don
\'
t have any environments right now
.
'
);
).
toEqual
(
'
You don
\'
t have any environments right now
'
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-new-environment-button
'
).
getAttribute
(
'
href
'
),
...
...
@@ -47,7 +47,7 @@ describe('environments empty state', () => {
it
(
'
renders empty state without new button
'
,
()
=>
{
expect
(
vm
.
$el
.
querySelector
(
'
.js-blank-state-title
'
).
textContent
.
trim
(),
).
toEqual
(
'
You don
\'
t have any environments right now
.
'
);
).
toEqual
(
'
You don
\'
t have any environments right now
'
);
expect
(
vm
.
$el
.
querySelector
(
'
.js-new-environment-button
'
),
...
...
spec/javascripts/environments/environments_app_spec.js
浏览文件 @
ea75b727
...
...
@@ -50,7 +50,7 @@ describe('Environment', () => {
expect
(
component
.
$el
.
querySelector
(
'
.js-blank-state-title
'
).
textContent
,
).
toContain
(
'
You don
\'
t have any environments right now
.
'
);
).
toContain
(
'
You don
\'
t have any environments right now
'
);
});
});
...
...
@@ -127,7 +127,7 @@ describe('Environment', () => {
it
(
'
should render empty state
'
,
()
=>
{
expect
(
component
.
$el
.
querySelector
(
'
.js-blank-state-title
'
).
textContent
,
).
toContain
(
'
You don
\'
t have any environments right now
.
'
);
).
toContain
(
'
You don
\'
t have any environments right now
'
);
});
});
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录