mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-31 21:21:49 +01:00
'''Really''' fixes #118. Now sorts the actions themselves as well as the contexts in the same order as one the home page.
git-svn-id: http://www.rousette.org.uk/svn/tracks-repos/trunk@146 a4c988fc-2ded-0310-b66e-134b36920a42
This commit is contained in:
parent
157d882483
commit
1043fefb1b
1 changed files with 1 additions and 1 deletions
|
|
@ -29,7 +29,7 @@ class FeedController < ApplicationController
|
|||
#
|
||||
def na_text
|
||||
@contexts = @user.contexts.collect { |x| x.hide? ? nil:x }.compact.sort! { |x,y| x.position <=> y.position }
|
||||
@not_done = @user.todos.collect { |x| x.done? ? nil:x }.compact.sort! {|x,y| x.context_id <=> y.context_id }
|
||||
@not_done = @user.todos.collect { |x| x.done? ? nil:x }.compact.sort! {|x,y| x.created_at <=> y.created_at }
|
||||
@headers["Content-Type"] = "text/plain; charset=utf-8"
|
||||
end
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue