foodsoft/app/views/tasks/_nav.haml

14 lines
494 B
Text
Raw Normal View History

- content_for :actionbar do
2013-04-12 00:00:02 +02:00
= 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 Seiten
2013-04-12 00:00:02 +02:00
%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.all
2013-04-12 00:00:02 +02:00
%li= link_to group.name, workgroup_tasks_path(workgroup_id: group.id)