Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
李少辉-开发者
gitlab-foss
提交
c2d15004
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,发现更多精彩内容 >>
未验证
提交
c2d15004
编写于
12月 11, 2017
作者:
F
Filipa Lacerda
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Improve empty states for TODOs and issues
上级
7ad8704c
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
11 addition
and
8 deletion
+11
-8
app/views/dashboard/todos/index.html.haml
app/views/dashboard/todos/index.html.haml
+3
-3
app/views/shared/empty_states/_issues.html.haml
app/views/shared/empty_states/_issues.html.haml
+5
-2
config/no_todos_messages.yml
config/no_todos_messages.yml
+3
-3
未找到文件。
app/views/dashboard/todos/index.html.haml
浏览文件 @
c2d15004
...
...
@@ -83,12 +83,12 @@
You're all done!
-
elsif
current_user
.
todos
.
any?
.todos-all-done
.svg-content
.svg-content
.svg-250
=
image_tag
'illustrations/todos_all_done.svg'
-
if
todos_filter_empty?
%h4
.text-center
=
Gitlab
.
config
.
gitlab
.
no_todos_messages
.
sample
%p
.text-center
%p
Are you looking for things to do? Take a look at
=
succeed
","
do
=
link_to
"the opened issues"
,
issues_dashboard_path
...
...
@@ -104,7 +104,7 @@
=
image_tag
'illustrations/todos_empty.svg'
.todos-empty-content
%h4
Todos let you see what you should do next
.
Todos let you see what you should do next
%p
When an issue or merge request is assigned to you, or when you
%strong
...
...
app/views/shared/empty_states/_issues.html.haml
浏览文件 @
c2d15004
...
...
@@ -18,7 +18,10 @@
-
if
project_select_button
=
render
'shared/new_project_item_select'
,
path:
'issues/new'
,
label:
'New issue'
,
type: :issues
-
else
=
link_to
'New issue'
,
button_path
,
class:
'btn btn-
new
'
,
title:
'New issue'
,
id:
'new_issue_link'
=
link_to
'New issue'
,
button_path
,
class:
'btn btn-
success
'
,
title:
'New issue'
,
id:
'new_issue_link'
-
else
%h4
.text-center
There are no issues to show
%p
The Issue Tracker is the place to add things that need to be improved or solved in a project. You can register or sign in to create issues for this project.
.text-center
%h4
There are no issues to show
=
link_to
'Register / Sign In'
,
new_user_session_path
,
class:
'btn btn-success'
config/no_todos_messages.yml
浏览文件 @
c2d15004
...
...
@@ -3,9 +3,9 @@
#
# If you come up with a fun one, please feel free to contribute it to GitLab!
# https://about.gitlab.com/contributing/
---
-
Good job! Looks like you don't have any todos left
.
---
-
Good job! Looks like you don't have any todos left
-
Isn't an empty todo list beautiful?
-
Give yourself a pat on the back!
-
Nothing left to do, high five!
-
Henceforth you shall be known as "Todo Destroyer"
.
-
Henceforth you shall be known as "Todo Destroyer"
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录