foodsoft/app/views/tasks/_nav.haml
2017-08-20 01:08:47 +02:00

13 lines
508 B
Text

- content_for :actionbar do
= link_to t('.new_task'), new_task_path, class: 'btn btn-primary'
- content_for :sidebar do
.well.well-small
%ul.nav.nav-list
%li.nav-header= t '.pages'
%li= link_to t('.my_tasks'), user_tasks_path
%li= link_to t('.all_tasks'), tasks_path
%li= link_to t('.archive'), archive_tasks_path
%li.nav-header= t '.group_tasks'
- for group in Workgroup.order(:name)
%li= link_to group.name, workgroup_tasks_path(workgroup_id: group.id)