mirror of
https://github.com/TracksApp/tracks.git
synced 2026-03-01 02:20:16 +01:00
start on done overview page
This commit is contained in:
parent
01057af684
commit
559a02d6f1
10 changed files with 127 additions and 32 deletions
|
|
@ -1,6 +1,6 @@
|
|||
class StatsController < ApplicationController
|
||||
|
||||
helper :todos
|
||||
helper :todos, :projects
|
||||
|
||||
append_before_filter :init, :exclude => []
|
||||
|
||||
|
|
@ -643,6 +643,18 @@ class StatsController < ApplicationController
|
|||
end
|
||||
end
|
||||
|
||||
def done
|
||||
@source_view = 'done'
|
||||
|
||||
@done_recently = current_user.todos.completed.all(:limit => 10, :order => 'completed_at DESC')
|
||||
|
||||
init_not_done_counts(['project'])
|
||||
@last_completed_projects = current_user.projects.completed.all(:limit => 10, :order => 'completed_at DESC')
|
||||
|
||||
@last_completed_contexts = []
|
||||
#@last_completed_contexts = current_user.contexts.completed.all(:limit => 10, :order => 'completed_at DESC')
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def get_unique_tags_of_user
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue