fix #857 and further refactoring for better done view

This commit is contained in:
Reinier Balt 2011-06-17 13:33:54 +02:00
parent c61238933c
commit 35fe362b93
10 changed files with 76 additions and 30 deletions

View file

@ -188,7 +188,6 @@ module LoginSystem
end
def basic_auth_denied
response.headers["Status"] = "401 Unauthorized"
response.headers["WWW-Authenticate"] = "Basic realm=\"'Tracks Login Required'\""
render :text => t('login.unsuccessful'), :status => 401
end

View file

@ -25,7 +25,7 @@ module Tracks
end
def find_done_todos
self.todos.find_in_state(:all, :completed, :order => "todos.completed_at DESC", :limit => self.user.prefs.show_number_completed)
self.todos.completed.all(:order => "todos.completed_at DESC", :limit => self.user.prefs.show_number_completed)
end
def not_done_todo_count(opts={})