fix #877 where showing the context on mobile was not the same as listing a context in other pages

This commit is contained in:
Reinier Balt 2009-04-14 21:59:52 +02:00
parent 1f2fc3787b
commit 52ed21d0c3

View file

@ -5,10 +5,11 @@
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 -%>
<h2><%=@context.name%></h2>
<ul class="c">
<table cellpadding="0" cellspacing="0" border="0" class="c">
<%= render :partial => "todos/mobile_todo",
:collection => @not_done,
:locals => { :parent_container_type => "context" }-%>
</ul>
<% end -%>