mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-30 04:35:17 +01:00
[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:
parent
8fba2bebc6
commit
0577e850f6
8 changed files with 13 additions and 9 deletions
|
|
@ -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
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue