#300: Updated projects and todos controllers to use Todo dependencies.

This commit is contained in:
Henrik Bohre 2009-05-20 13:02:28 +02:00 committed by Eric Allen
parent ced0e8f531
commit cb4ed7ff7f
2 changed files with 20 additions and 1 deletions

View file

@ -47,10 +47,11 @@ class ProjectsController < ApplicationController
@not_done = @project.not_done_todos_including_hidden
@deferred = @project.deferred_todos
@pending = @project.pending_todos
@done = @project.todos.find_in_state(:all, :completed, :order => "todos.completed_at DESC", :limit => current_user.prefs.show_number_completed, :include => [:context])
@count = @not_done.size
@down_count = @count + @deferred.size
@down_count = @count + @deferred.size + @pending.size
@next_project = current_user.projects.next_from(@project)
@previous_project = current_user.projects.previous_from(@project)
@default_tags = @project.default_tags