summaryrefslogtreecommitdiff
path: root/app/views
diff options
context:
space:
mode:
authorSean McGivern <sean@mcgivern.me.uk>2016-11-08 10:34:44 +0000
committerSean McGivern <sean@mcgivern.me.uk>2016-11-08 10:34:44 +0000
commit8f85bd5789d50c080a7214981cc0a45fcb382bef (patch)
treeeaa87eebb821417d8944686390b1d99bec785d65 /app/views
parent034e8593374951d6711c9a941643b2da9f6744cf (diff)
parentdd93079a05d49922fdbe4c221781f39ce69684e8 (diff)
downloadgitlab-ce-8f85bd5789d50c080a7214981cc0a45fcb382bef.tar.gz
Merge branch 'todos-filter-empty-state' into 'master'
Fixed todos empty state when filtering Closes #24127 See merge request !7334
Diffstat (limited to 'app/views')
-rw-r--r--app/views/dashboard/todos/index.html.haml22
1 files changed, 13 insertions, 9 deletions
diff --git a/app/views/dashboard/todos/index.html.haml b/app/views/dashboard/todos/index.html.haml
index e247eebc3fc..5b2465e25ee 100644
--- a/app/views/dashboard/todos/index.html.haml
+++ b/app/views/dashboard/todos/index.html.haml
@@ -82,15 +82,19 @@
- elsif current_user.todos.any?
.todos-all-done
= render "shared/empty_states/todos_all_done.svg"
- %h4.text-center
- Good job! Looks like you don't have any todos left.
- %p.text-center
- Are you looking for things to do? Take a look at
- = succeed "," do
- = link_to "the opened issues", issues_dashboard_path
- contribute to
- = link_to "merge requests", merge_requests_dashboard_path
- or mention someone in a comment to assign a new todo automatically.
+ - if todos_filter_empty?
+ %h4.text-center
+ Good job! Looks like you don't have any todos left.
+ %p.text-center
+ Are you looking for things to do? Take a look at
+ = succeed "," do
+ = link_to "the opened issues", issues_dashboard_path
+ contribute to
+ = link_to "merge requests", merge_requests_dashboard_path
+ or mention someone in a comment to assign a new todo automatically.
+ - else
+ %h4.text-center
+ There are no todos to show.
- else
.todos-empty
.todos-empty-hero