Make unassigned tasks more prominent in the dashboard
Show all unassigned task in the dashboard to make it more interesting for members to pick tasks. Some members do not (want to) click on the task list very often it is not clear if there are new tasks if we show the number of unassigned tasks only.
This commit is contained in:
parent
4cae94eff9
commit
72ef31c0ec
9 changed files with 48 additions and 54 deletions
|
|
@ -1,31 +0,0 @@
|
|||
%table.table.table-striped
|
||||
%thead
|
||||
%tr
|
||||
%th= heading_helper Task, :due_date
|
||||
%th
|
||||
%th= heading_helper Task, :name
|
||||
%th{:colspan => '2'}
|
||||
= t '.who'
|
||||
%small= t '.who_hint'
|
||||
%tbody
|
||||
- tasks.each do |task|
|
||||
- done = task.done ? " done" : ""
|
||||
%tr{:class => done }
|
||||
%td= format_date(task.due_date) unless task.due_date.nil?
|
||||
%td
|
||||
- if task.periodic?
|
||||
%i.icon-repeat{title: t('tasks.repeated')}
|
||||
%td= link_to task_title(task), task_path(task)
|
||||
%td
|
||||
= task_assignments task
|
||||
= highlighted_required_users task
|
||||
%td
|
||||
- if !task.is_accepted?(current_user)
|
||||
= link_to t('.accept_task'), accept_task_path(task), method: :post, class: 'btn btn-small'
|
||||
= link_to t('.reject_task'), reject_task_path(task), method: :post, class: 'btn btn-small' if task.is_assigned?(current_user)
|
||||
- elsif !task.done
|
||||
= link_to set_done_task_path(task), method: :post, class: 'btn btn-small',
|
||||
title: t('.mark_done') do
|
||||
%i.icon-ok= t '.done_q'
|
||||
- else
|
||||
%i.icon-ok= t '.done'
|
||||
|
|
@ -4,7 +4,7 @@
|
|||
- unless @non_group_tasks.empty?
|
||||
%section
|
||||
%h3= t '.title_non_group'
|
||||
= render 'list', tasks: @non_group_tasks
|
||||
= render 'shared/task_list', tasks: @non_group_tasks
|
||||
|
||||
|
||||
- for group in @groups
|
||||
|
|
@ -14,5 +14,5 @@
|
|||
%h3
|
||||
= group.name
|
||||
%small= link_to t('.show_group_tasks'), workgroup_tasks_path(workgroup_id: group)
|
||||
= render 'list', tasks: tasks
|
||||
= render 'shared/task_list', tasks: tasks
|
||||
= link_to_top
|
||||
|
|
|
|||
|
|
@ -4,14 +4,13 @@
|
|||
- unless @unaccepted_tasks.empty?
|
||||
%section
|
||||
%h3= t '.title_open'
|
||||
= render 'list', tasks: @unaccepted_tasks
|
||||
= render 'shared/task_list', tasks: @unaccepted_tasks
|
||||
|
||||
%section
|
||||
%h3= t '.title_accepted'
|
||||
- unless @accepted_tasks.empty?
|
||||
= render 'list', tasks: @accepted_tasks
|
||||
= render 'shared/task_list', tasks: @accepted_tasks
|
||||
- else
|
||||
= t('.more', tasks_link: link_to(t('.tasks_link'), tasks_path)).html_safe
|
||||
%br/
|
||||
= link_to_top
|
||||
|
||||
|
|
|
|||
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
%section
|
||||
%h3= t '.title_all'
|
||||
= render 'list', tasks: @group.open_tasks
|
||||
= render 'shared/task_list', tasks: @group.open_tasks
|
||||
%br/
|
||||
= link_to_top
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue