foodsoft/app/views/tasks/workgroup.haml

21 lines
518 B
Text
Raw Normal View History

2013-04-12 00:00:02 +02:00
- title t('.title', workgroup: @group.name)
= render 'nav'
2009-01-06 11:49:19 +01:00
2012-10-08 21:52:03 +02:00
%section.well
2013-04-12 00:00:02 +02:00
%h3= t '.weekly.title'
2012-10-08 21:52:03 +02:00
- if @group.weekly_task
2013-04-12 00:00:02 +02:00
= t('.weekly.desc', weekday: weekday(@group.weekday), task: @group.task_name).html_safe
2012-10-08 21:52:03 +02:00
- else
2013-04-12 00:00:02 +02:00
= t('.weekly.empty').html_safe
2009-01-06 11:49:19 +01:00
2012-10-08 21:52:03 +02:00
- if @current_user.member_of?(@group) or @current_user.role_admin?
2013-04-12 00:00:02 +02:00
= link_to t('.weekly.edit'), edit_foodcoop_workgroup_path(@group), class: 'btn'
2012-10-08 21:52:03 +02:00
%section
2013-04-12 00:00:02 +02:00
%h3= t '.title_all'
2012-10-08 21:52:03 +02:00
= render 'list', tasks: @group.open_tasks
%br/
= link_to_top
2009-01-06 11:49:19 +01:00
2013-04-12 00:00:02 +02:00