foodsoft/app/views/tasks/user.html.haml

17 lines
401 B
Text
Raw Permalink Normal View History

2013-09-10 10:27:13 +02:00
- title t('.title')
= render 'nav'
2012-10-08 21:52:03 +02:00
- unless @unaccepted_tasks.empty?
%section
2013-04-12 00:00:02 +02:00
%h3= t '.title_open'
= render 'shared/task_list', tasks: @unaccepted_tasks
2012-10-08 21:52:03 +02:00
%section
2013-04-12 00:00:02 +02:00
%h3= t '.title_accepted'
2012-10-08 21:52:03 +02:00
- unless @accepted_tasks.empty?
= render 'shared/task_list', tasks: @accepted_tasks
2012-10-08 21:52:03 +02:00
- else
2013-04-12 00:00:02 +02:00
= t('.more', tasks_link: link_to(t('.tasks_link'), tasks_path)).html_safe
2012-10-08 21:52:03 +02:00
%br/
= link_to_top