This commit is contained in:
Reinier Balt 2011-04-19 17:22:23 +02:00
parent cb58318858
commit 4658ca8655
3 changed files with 17 additions and 1 deletions

View file

@ -234,7 +234,9 @@ module TodosHelper
}
page.project {
return (@todo.active? && @todo.project && @todo.project.id == @default_project.id) ||
(@todo.project.hidden? && @todo.project_hidden?) || @todo.deferred? || @todo.pending?
(@todo.project.hidden? && @todo.project_hidden?) ||
( @todo.deferred? && (@todo.project.id == @default_project.id) ) ||
@todo.pending?
}
end