<% if query.grouped? %>
  <%= render :partial => 'projects/list', :locals => {:projects => projects, :query => query} %>
<% else %>
  <%= render :partial => 'projects/projects_query_tree', :locals => {:projects => projects, :query => query} %>
<% end %>

<p style="display: none;" class="infinite-scroll-load-next-page-trigger-container hide-when-print">
  <a href="javascript:void(0)" class="button-main button-rounded button-outlined infinite-scroll-load-next-page-trigger"><%= l(:button_load_additional_records) %></a>
</p>
