<% if @count == 0 -%>
Your search yielded no results.
<% else -%>
<% unless @found_todos.empty? -%>
<%= @found_todos.size %>Todos matching query
<%= render :partial => "todos/todo", :collection => @found_todos, :locals => { :parent_container_type => 'search', :suppress_context => false, :suppress_project => false, :suppress_edit_button => true } %>
<% end -%>
<% unless @found_projects.empty? -%>
<%= @found_projects.size %>Projects matching query
<%= render :partial => "projects/project_listing", :collection => @found_projects, :locals => { :suppress_drag_handle => true, :suppress_edit_button => true } %>
<% end -%>
<% unless @found_notes.empty? -%>
<%= @found_notes.size %>Notes matching query
<% for notes in @found_notes -%>
<%= render :partial => "notes/notes_summary", :object => notes %>
<% end -%>
<% end -%>
<% unless @found_contexts.empty? -%>
<%= @found_contexts.size %>Contexts matching query
<%= render :partial => "contexts/context_listing", :collection => @found_contexts, :locals => { :suppress_drag_handle => true, :suppress_edit_button => true } %>
<% end -%>
<% unless @found_tags.empty? -%>
<%= @found_tags.size %>Tags matching query
<% @found_tags.each do |tag| -%>
<%= link_to tag.name, {:controller => "todos", :action => "tag", :id => tag.name} -%>
<% end %>
<% end %>
<% end -%>