<% @not_done = @not_done_todos.select {|t| t.project_id == project.id } # invalidate the cache every day because of staleness or # rendering of "due in x days" that change without touching updated at of the todo cache [project, @source_view, current_user.date.strftime("%Y%m%d")] do %> <%= render :partial => "project_settings_container", :locals => {:project => project} if source_view_is :project %>
">

<%= container_toggle("toggle_p#{project.id}") if collapsible %> <%= source_view_is(:project) ? t('projects.actions_in_project_title') : show_project_name(project) %>

<%= t('projects.no_actions_in_project') %>

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