Merge branch 'sort_projects_by_todos' of git://github.com/waltercruz/tracks

This commit is contained in:
Reinier Balt 2008-10-28 20:59:07 +01:00
commit 76d72b54bf
7 changed files with 59 additions and 3 deletions

View file

@ -186,6 +186,13 @@ class ProjectsController < ApplicationController
init_not_done_counts(['project'])
end
def actionize
@state = params['state']
@projects = current_user.projects.actionize(current_user.id, :state => @state) if @state
@contexts = current_user.contexts
init_not_done_counts(['project'])
end
protected
def render_projects_html