<% @not_done = @not_done_todos.select {|t| t.context_id == context.id } %>
>

<% if collapsible -%> <%= image_tag("collapse.png") %> <% end -%> <% if source_view_is :context %> <%= context.name %> <%= in_place_editor 'context_name_in_place_editor', { :url => { :controller => 'contexts', :action => 'update', :id => context.id, :field => 'name', :update_context_name => true, :escape => false}, :options=>"{method:'put'}", :script => true } %> <% else %> <%= link_to_context( context ) %> <% end %>

Currently there are no incomplete actions in this context

<%= render :partial => "todos/todo", :collection => @not_done, :locals => { :parent_container_type => "context" } %>