fix sort order for text feeds. From discussion at http://www.getontracks.org/forums/viewthread/442/

This commit is contained in:
Reinier Balt 2010-01-19 11:03:46 +01:00
parent 7e7106265c
commit c3e731e0a3
2 changed files with 3 additions and 3 deletions

View file

@ -1,7 +1,7 @@
<%
context = text_context
todos_in_context = todos.select { |t| t.context_id == context.id }
todos_in_context = not_done_todos.select { |t| t.context_id == context.id }
if todos_in_context.length > 0
-%> <%= context.name.upcase %>:
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
<% end -%>
<% end -%>

View file

@ -1 +1 @@
<%= render :partial => "contexts/text_context", :collection => @contexts, :locals => { :todos => @todos } %>
<%= render :partial => "contexts/text_context", :collection => @contexts, :locals => { :todos => @todos, :not_done_todos => @not_done_todos } %>