tracks/app/views/contexts/_context.text.erb

7 lines
230 B
Text
Raw Permalink Normal View History

2012-04-27 14:22:16 +02:00
<%
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 -%>