Fixed the count of undone items on the main page again, after breaking it ;-)

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@11 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-01-23 12:31:10 +00:00
parent f7b77f6fd9
commit 3c196c46d8
6 changed files with 9 additions and 6 deletions

View file

@ -44,7 +44,8 @@ class ContextController < ApplicationController
@places = Context.find_all
@projects = Project.find_all
@page_title = "Context: #{@context.name.capitalize}"
@not_done = Todo.find_all( "context_id=#{@context.id} AND done=0", "created DESC" )
@not_done = Todo.find_all( "context_id=#{@context.id} AND done=0", "created ASC" )
@count = Todo.count( "context_id=#{@context.id} AND done=0" )
end