<% if @count == 0 -%>

<%= t('search.no_results') %>

<% else -%> <% unless @found_todos.empty? -%>

<%= @found_todos.size %><%= t('search.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 %><%= t('search.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 %><%= t('search.notes_matching_query') %>

<% for notes in @found_notes -%>
<%= render :partial => "notes/notes_summary", :object => notes %>
<% end -%>
<% end -%> <% unless @found_contexts.empty? -%>

<%= @found_contexts.size %><%= t('search.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 %><%= t('search.tags_matching_query') %>

<% @found_tags.each do |tag| -%> <%= link_to tag.name, {:controller => "todos", :action => "tag", :id => tag.name} -%> <% end %>
<% end %> <% end -%>