2008-04-19 19:15:07 +00:00
|
|
|
<%
|
|
|
|
|
# select actions from this context
|
|
|
|
|
@not_done = @not_done_todos.select {|t| t.context_id == mobile_context.id }
|
|
|
|
|
|
|
|
|
|
if not @not_done.empty?
|
|
|
|
|
# only show a context when there are actions in it
|
2008-05-28 09:29:46 +00:00
|
|
|
-%>
|
|
|
|
|
<h2><%=mobile_context.name%></h2>
|
2008-12-03 11:50:20 +01:00
|
|
|
<ul class="c">
|
2008-12-02 02:22:36 +01:00
|
|
|
<table cellpadding="0" cellspacing="0" border="0" class="c">
|
2008-05-28 09:29:46 +00:00
|
|
|
<%= render :partial => "todos/mobile_todo",
|
|
|
|
|
:collection => @not_done,
|
|
|
|
|
:locals => { :parent_container_type => "context" }-%>
|
2008-12-03 11:50:20 +01:00
|
|
|
</ul>
|
2008-12-02 02:22:36 +01:00
|
|
|
<% end -%>
|