removed whitespaces and matched the style with the todo_controller.rb (unless)

This commit is contained in:
Sebastian Fischmeister 2012-02-24 16:46:11 -05:00
parent 725ff5e0fa
commit 0f39034986

View file

@ -97,9 +97,9 @@ class ProjectsController < ApplicationController
@done = {}
@done = @project.todos.find_in_state(:all, :completed,
:order => "todos.completed_at DESC",
:limit => current_user.prefs.show_number_completed,
:include => Todo::DEFAULT_INCLUDES) if current_user.prefs.show_number_completed > 0
:order => "todos.completed_at DESC",
:limit => current_user.prefs.show_number_completed,
:include => Todo::DEFAULT_INCLUDES) unless current_user.prefs.show_number_completed == 0
@count = @not_done.size
@down_count = @count + @deferred.size + @pending.size