gitlab-org--gitlab-foss/app/views/dashboard/tasks/index.html.haml

26 lines
834 B
Text
Raw Normal View History

2016-02-15 10:13:52 -05:00
- page_title "Task Queue"
- header_title "Task Queue", dashboard_tasks_path
2016-02-12 13:45:44 -05:00
.top-area
%ul.nav-links
%li{class: ("active" if params[:state].blank? || params[:state] == 'pending')}
= link_to dashboard_tasks_path(state: 'pending') do
Tasks (#{tasks_pending_count})
2016-02-12 13:45:44 -05:00
%li{class: ("active" if params[:state] == 'done')}
= link_to dashboard_tasks_path(state: 'done') do
Done (#{tasks_done_count})
2016-02-12 13:45:44 -05:00
.tasks
- if @tasks.any?
- @tasks.group_by(&:project).each do |group|
.panel.panel-default
- project = group[0]
.panel-heading
= link_to project.name_with_namespace, namespace_project_path(project.namespace, project)
%ul.well-list.tasks-list
= render group[1]
= paginate @tasks, theme: "gitlab"
- else
.nothing-here-block No tasks to show