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:
Patrick Gansterer 2016-02-24 21:48:32 +01:00 committed by wvengen
parent 4cae94eff9
commit 72ef31c0ec
9 changed files with 48 additions and 54 deletions

View file

@ -6,7 +6,7 @@
-# placeholder deface to add content using erb[silent]:contains()
- '<dashboard_top_mark>'
- unless @unaccepted_tasks.empty? && @next_tasks.empty? && @unassigned_tasks.size == 0
- unless @unaccepted_tasks.empty? && @next_tasks.empty?
%section.row-fluid
- unless @next_tasks.empty?
.span3.well
@ -20,11 +20,12 @@
%h4= t '.tasks_move.title'
= t '.tasks_move.desc'
= link_to t('.tasks_move.action'), user_tasks_path
- unless @unassigned_tasks.size == 0
.span3.well
%h4= t '.tasks_open.title'
= t '.tasks_open.desc', size: @unassigned_tasks.size
= link_to t('.tasks_open.action'), tasks_path
- if @unassigned_tasks.size > 0
%section
%h2= t '.tasks_open.title'
= render 'shared/task_list', tasks: @unassigned_tasks
= link_to t('.tasks_open.view_all'), tasks_path
- if current_user.ordergroup
= render :partial => 'shared/open_orders', :locals => {:ordergroup => current_user.ordergroup}

View file

@ -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

View file

@ -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

View file

@ -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