mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
14 lines
No EOL
437 B
Text
14 lines
No EOL
437 B
Text
<%
|
|
# select actions from this context
|
|
@not_done = @not_done_todos.select {|t| t.context_id == @context.id }
|
|
|
|
if not @not_done.empty?
|
|
# only show a context when there are actions in it
|
|
%>
|
|
<h2><%=@context.name%></h2>
|
|
<table cellpadding="0" cellspacing="0" border="0">
|
|
<%= render :partial => "todos/mobile_todo",
|
|
:collection => @not_done,
|
|
:locals => { :parent_container_type => "context" }%>
|
|
</table>
|
|
<% end -%> |