<%% if searching? %>

Search Results for "<%%= params[:search] %>"

<%% if @<%= plural_name %>.size > 0 %> <%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %> <%% else %>

Sorry, no results found.

<%% end %> <%% else %> <%% if @<%= plural_name %>.size > 0 %> <%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %> <%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %> <%% else %>

There are no <%= $title_name.pluralize.downcase %> yet. Click "Create New <%= $title_name %>" to add your first <%= $title_name.downcase %>.

<%% end %> <%% end %>
<%%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => false } if !searching? and <%= class_name %>.count > 1 %>