foodsoft/app/views/tasks/index.haml
2013-12-10 19:12:29 +01:00

18 lines
423 B
Text

- title t('.title')
= render 'nav'
- unless @non_group_tasks.empty?
%section
%h3= t '.title_non_group'
= render 'list', tasks: @non_group_tasks
- for group in @groups
- tasks = group.open_tasks
- unless tasks.empty?
%section
%h3
= group.name
%small= link_to t('.show_group_tasks'), workgroup_tasks_path(workgroup_id: group)
= render 'list', tasks: tasks
= link_to_top