mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-17 15:50:13 +01:00
#300: Updated projects and todos controllers to use Todo dependencies.
This commit is contained in:
parent
ced0e8f531
commit
cb4ed7ff7f
2 changed files with 20 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue