mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-04 23:11:47 +01:00
Merge branch 'sort_projects_by_todos' of git://github.com/waltercruz/tracks
This commit is contained in:
commit
76d72b54bf
7 changed files with 59 additions and 3 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue