Todo list for <%= @user.username %>
Pending
<%= render :partial=>"pending_todos" %>
Completed
<%= render :partial=>"completed_todos" %>
<%= drop_receiving_element('pending_todos',
:accept => 'completed_todo',
:complete => "$('spinner').hide();",
:before => "$('spinner').show();",
:hoverclass => 'hover',
:with => "'todo=' + encodeURIComponent(element.id.split('_').last())",
:url => {:action=>:todo_pending, :id=>@user})%>
<%= drop_receiving_element('completed_todos',
:accept => 'pending_todo',
:complete => "$('spinner').hide();",
:before => "$('spinner').show();",
:hoverclass => 'hover',
:with => "'todo=' + encodeURIComponent(element.id.split('_').last())",
:url => {:action=>:todo_completed, :id=>@user})%>