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

<% if collapsible -%> <%= image_tag("collapse.png") %> <% apply_behavior '.container_toggle:click', :prevent_default => true do |page| page << " /* only handle the click if a previous click had finished its animation */ if (todoItems.lastEffect == null || todoItems.lastEffect.state=='finished') { containerElem = this.up('.container') toggleTarget = containerElem.down('.toggle_target') if (Element.visible(toggleTarget)) { todoItems.collapseNextActionListing(this, toggleTarget); todoItems.contextCollapseCookieManager.setCookie(todoItems.buildCookieName(containerElem), true) } else { todoItems.expandNextActionListing(this, toggleTarget); todoItems.contextCollapseCookieManager.clearCookie(todoItems.buildCookieName(containerElem)) } } " end -%> <% 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" } %> <% if @not_done.empty? # fix (hack) for #713 set_behavior_for_star_icon set_behavior_for_toggle_checkbox end -%>