Active Projects:
<% for project in @projects.reject{|p| p.done? } -%>
- <%= link_to( sanitize(project.name), { :controller => "project", :action => "show",
:name => urlize(project.name) } ) + " (" + project.count_undone_todos("actions") + ")" %>
<% end -%>
Completed Projects:
<% for project in @projects.reject{|p| !p.done? } -%>
- <%= link_to( sanitize(project.name), { :controller => "project", :action => "show",
:name => urlize(project.name) } ) + " (" + project.count_undone_todos("actions") + ")" %>
<% end -%>
Active Contexts:
<% for context in @contexts.reject{|c| c.hide? } -%>
- <%= link_to( sanitize(context.name), { :controller => "context", :action => "show",
:name => urlize(context.name) } ) + " (" + context.count_undone_todos("actions") + ")" %>
<% end -%>
Hidden Contexts:
<% for context in @contexts.reject{|c| !c.hide? } -%>
- <%= link_to( sanitize(context.name), { :controller => "context", :action => "show",
:name => urlize(context.name) } ) + " (" + context.count_undone_todos("actions") + ")" %>
<% end -%>