2012-10-08 21:52:03 +02:00
|
|
|
- if Task.done.count > 20
|
|
|
|
= items_per_page
|
|
|
|
= pagination_links_remote @tasks
|
|
|
|
|
|
|
|
%table.table.table-striped
|
|
|
|
%thead
|
|
|
|
%tr
|
2013-04-12 00:00:02 +02:00
|
|
|
%th= t '.due_date'
|
|
|
|
%th= t '.task'
|
|
|
|
%th= t '.who'
|
2012-10-08 21:52:03 +02:00
|
|
|
%th
|
|
|
|
%tbody
|
|
|
|
- @tasks.each do |task|
|
|
|
|
%tr
|
|
|
|
%td= task.due_date unless task.due_date.nil?
|
2013-04-12 00:00:02 +02:00
|
|
|
%td= link_to t('.task_format', name: task.name, duration: task.duration), :controller => "tasks", :action => "show", :id => task
|
|
|
|
%td= task_assignments task
|