diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2017-12-11 12:08:55 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2017-12-11 12:08:55 +0000 |
commit | c2d150049b0fc38332eb5f2f166c0b15ae43d731 (patch) | |
tree | 7c063d417fee117aed22baf5eb009db7b99ff258 | |
parent | 7ad8704c24e54ba08db204131843cd9eaeaed7df (diff) | |
download | gitlab-ce-c2d150049b0fc38332eb5f2f166c0b15ae43d731.tar.gz |
Improve empty states for TODOs and issues
-rw-r--r-- | app/views/dashboard/todos/index.html.haml | 6 | ||||
-rw-r--r-- | app/views/shared/empty_states/_issues.html.haml | 7 | ||||
-rw-r--r-- | config/no_todos_messages.yml | 6 |
3 files changed, 11 insertions, 8 deletions
diff --git a/app/views/dashboard/todos/index.html.haml b/app/views/dashboard/todos/index.html.haml index a5686002328..20ca6ec969a 100644 --- a/app/views/dashboard/todos/index.html.haml +++ b/app/views/dashboard/todos/index.html.haml @@ -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 diff --git a/app/views/shared/empty_states/_issues.html.haml b/app/views/shared/empty_states/_issues.html.haml index ee5637cf422..cabada4094c 100644 --- a/app/views/shared/empty_states/_issues.html.haml +++ b/app/views/shared/empty_states/_issues.html.haml @@ -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' diff --git a/config/no_todos_messages.yml b/config/no_todos_messages.yml index 264a975b614..da721a9b6e6 100644 --- a/config/no_todos_messages.yml +++ b/config/no_todos_messages.yml @@ -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" |