%=render :partial => 'title' %>
>
<% current_backlog = nil -%>
<% for task in @tasks -%>
<% if task.backlog != current_backlog -%>
<%=sortable_element "active_tasks_#{current_backlog.id}", :url => { :action => :order } if current_backlog%>
<%='' if current_backlog%>
<% current_backlog = task.backlog %>
<%= '-
' if false && current_backlog %>
<%=render :partial => '/tasks/backlog_header', :locals => { :backlog => task.backlog, :track_times => current_backlog.track_done? && @tasks.find {|t|t.period && t.period.active?} } %>
<%=render :partial => '/tasks/fields_header', :locals => { :backlog => task.backlog, :active => true, :track_times => @tasks.find {|t|t.period && t.period.active?}, :work_done => @tasks.find {|t|t.backlog_id == current_backlog.id && t.total_done > 0} } %>
<% end -%>
<%=render :partial => '/tasks/task', :locals => { :task => task, :i => i, :active => true, :highlight_task => task == @selected_task, :update => :spotlight, :hidden => false } %>
<% i += 1 %>
<% end -%>
<%=sortable_element "active_tasks_#{current_backlog.id}", :url => { :action => :order }, :constraint => false if current_backlog%>
<%='
' if current_backlog%>
><%=l :no_pending_tasks%>