tracks/app/views/contexts/_text_context.rhtml

7 lines
244 B
Text
Raw Normal View History

2009-03-31 22:11:37 +02:00
<%
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 -%>