make project settings editable from the project page

We're using the edit form instead of several separate fields to edit settings
This commit is contained in:
Reinier Balt 2009-04-18 23:50:12 +02:00
parent 66833829a0
commit b990f8a015
14 changed files with 150 additions and 169 deletions

View file

@ -659,8 +659,8 @@ class TodosController < ApplicationController
end
from.project do
unless @todo.project_id == nil
@down_count = current_user.projects.find(@todo.project_id).not_done_todo_count(:include_project_hidden_todos => true)
@deferred_count = current_user.projects.find(@todo.project_id).deferred_todo_count
@down_count = current_user.projects.find(@todo.project_id).not_done_todos_including_hidden.count
@deferred_count = current_user.projects.find(@todo.project_id).deferred_todos.count
end
end
from.deferred do