Ading a sort by number of tasks option

This commit is contained in:
Walter Cruz 2008-09-23 17:06:14 -03:00
parent 0673d67b62
commit ee5c730f44
4 changed files with 30 additions and 1 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(:state => @state) if @state
@contexts = current_user.contexts
init_not_done_counts(['project'])
end
protected
def render_projects_html