tracks/app/views/contexts/_text_context.rhtml
chris erway f415886190 make text feed a little neater
Signed-off-by: Reinier Balt <lrbalt@gmail.com>
2009-04-01 03:59:12 +08:00

7 lines
No EOL
250 B
Text

<%
context = text_context
todos_in_context = 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 -%>