mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-15 19:58:08 +01:00
8 lines
252 B
Text
8 lines
252 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 %>:
|
||
|
|
<% end -%>
|
||
|
|
<%= render :partial => "todos/text_todo", :collection => todos_in_context -%>
|