diff options
author | Douwe Maan <douwe@selenight.nl> | 2016-02-20 22:53:25 +0300 |
---|---|---|
committer | Douwe Maan <douwe@selenight.nl> | 2016-02-20 22:59:19 +0300 |
commit | d53ae7f14d7c24ee590ba57632d267ec01706aa4 (patch) | |
tree | 930d407446a93197bfd41e4accd8800c95810a80 /app/views/dashboard | |
parent | 57d16552ff769cc5b41737de803bc2ddc4813f4e (diff) |
Add "Mark all as done" button
Diffstat (limited to 'app/views/dashboard')
-rw-r--r-- | app/views/dashboard/todos/index.html.haml | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/app/views/dashboard/todos/index.html.haml b/app/views/dashboard/todos/index.html.haml index 8340c799c53..946d7df3933 100644 --- a/app/views/dashboard/todos/index.html.haml +++ b/app/views/dashboard/todos/index.html.haml @@ -4,21 +4,25 @@ .top-area %ul.nav-links %li{class: ('active' if params[:state].blank? || params[:state] == 'pending')} - = link_to page_filter_path(state: 'pending') do + = link_to todos_filter_path(state: 'pending') do %span To do %span{class: 'badge'} = todos_pending_count %li{class: ('active' if params[:state] == 'done')} - = link_to page_filter_path(state: 'done') do + = link_to todos_filter_path(state: 'done') do %span Done %span{class: 'badge'} = todos_done_count + .nav-controls + - if @todos.any?(&:pending?) + = link_to 'Mark all as done', destroy_all_dashboard_todos_path(todos_filter_params), class: 'btn', method: :delete + .todos-filters .gray-content-block.second-block - = form_tag page_filter_path(without: [:assignee_id, :milestone_title, :label_name, :scope, :sort]), method: :get, class: 'filter-form' do + = form_tag todos_filter_path(without: [:project_id, :author_id, :type, :action_id]), method: :get, class: 'filter-form' do .filter-item.inline = select_tag('project_id', todo_projects_options, class: 'select2 trigger-submit', include_blank: true, @@ -47,7 +51,7 @@ = render group[1] = paginate @todos, theme: "gitlab" - else - .nothing-here-block No todos to show + .nothing-here-block You're all done! :javascript new UsersSelect(); |