mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-28 10:04:07 +01:00
fix #857 and further refactoring for better done view
This commit is contained in:
parent
c61238933c
commit
35fe362b93
10 changed files with 76 additions and 30 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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={})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue