tracks/app/views/contexts/_context.text.erb
2012-04-30 13:56:41 +02:00

6 lines
230 B
Text

<%
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/todo", :collection => todos_in_context -%>
<% end -%>