[Contributed by Arnaud Limbourg, ticket:18] A new entry in settings.yml allows you to choose the number of completed actions you want to see on the /todo/list home page. Also sorts by due date (ascending) first, then creation date (descending) on /todo/list, /context/show/[name], and /project/show/[name]

git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@57 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
bsag 2005-04-03 11:45:05 +00:00
parent 8fba2bebc6
commit 0577e850f6
8 changed files with 13 additions and 9 deletions

View file

@ -81,8 +81,8 @@ class ContextController < ApplicationController
@context = Context.find_by_name(@params["id"].humanize)
@projects = Project.find_all
@page_title = "TRACKS::Context: #{@context.name.capitalize}"
@not_done = Todo.find_all( "context_id=#{@context.id} AND done=0", "created ASC" )
@count = Todo.count( "context_id=#{@context.id} AND done=0" )
@not_done = Todo.find_all( "context_id=#{@context.id} AND done=0", "due DESC, created ASC" )
@count = Todo.count( "context_id=#{@context.id} AND done=0" )
end