mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-01 06:48:49 +01:00
32 lines
1.6 KiB
Text
32 lines
1.6 KiB
Text
<div id="display_box_results">
|
|
<% if @count == 0 -%>
|
|
<div class="message"><p>Your search yielded no results.</p></div>
|
|
<% else -%>
|
|
<% source_view_is = :search %>
|
|
<% parent_container_type = 'search' %>
|
|
<% if not @found_todos.empty? -%>
|
|
<div id="found-todos-container" class="container">
|
|
<h2><span id="found-todos-count" class="badge"><%= @found_todos.size %></span>Todos matching query</h2>
|
|
<%= render :partial => "todos/todo", :collection => @found_todos, :locals => { :parent_container_type => 'search', :suppress_context => false, :suppress_project => false, :suppress_edit_button => true } %>
|
|
</div>
|
|
<% end -%>
|
|
|
|
<% if not @found_projects.empty? -%>
|
|
<div id="found-projects-container" class="container">
|
|
<h2><span id="found-projects-count" class="badge"><%= @found_projects.size %></span>Projects matching query</h2>
|
|
<%= render :partial => "projects/project_listing", :collection => @found_projects, :locals => { :suppress_drag_handle => true, :suppress_edit_button => true } %>
|
|
</div>
|
|
<% end -%>
|
|
|
|
<% if not @found_notes.empty? -%>
|
|
<div id="found-notes-container" class="container">
|
|
<h2><span id="found-notes-count" class="badge"><%= @found_notes.size %></span>Notes matching query</h2>
|
|
<% for notes in @found_notes -%>
|
|
<div class="container" id="note-<%= notes.id %>-wrapper">
|
|
<%= render :partial => "notes/notes_summary", :object => notes %>
|
|
</div>
|
|
<% end -%>
|
|
</div>
|
|
<% end -%>
|
|
<% end -%>
|
|
</div>
|