Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
c2d15004
Commit
c2d15004
authored
Dec 11, 2017
by
Filipa Lacerda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve empty states for TODOs and issues
parent
7ad8704c
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
8 deletions
+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
No files found.
app/views/dashboard/todos/index.html.haml
View file @
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
View file @
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
View file @
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"
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment