mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-04 16:28:50 +01:00
fix sort order for text feeds. From discussion at http://www.getontracks.org/forums/viewthread/442/
This commit is contained in:
parent
7e7106265c
commit
c3e731e0a3
2 changed files with 3 additions and 3 deletions
|
|
@ -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 -%>
|
||||
|
|
|
|||
|
|
@ -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 } %>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue