<%% if searching? %>
<%%= t('admin.search_results_for', :query => params[:search]) %>
<%% if @<%= plural_name %>.any? %>
<%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %>
<%% else %>
<%%= t('admin.search_no_results') %>
<%% end %>
<%% else %>
<%% if @<%= plural_name %>.any? %>
<%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %>
<%%= render :partial => "sortable_list" %>
<%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %>
<%% else %>
<%%= t('.no_items_yet') %>
<%% end %>
<%% end %>
<%%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => false } if !searching? and <%= class_name %>.count > 1 %>