vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb in refinerycms-0.9.6.5 vs vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb in refinerycms-0.9.6.6

- old
+ new

@@ -15,16 +15,16 @@ </ul> </div> <div id='records'> <%% if searching? %> <h2>Search Results for "<%%= params[:search] %>"</h2> - <%% if @<%= plural_name %>.size > 0 %> + <%% unless @<%= plural_name %>.empty? %> <%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %> <%% else %> <p>Sorry, no results found.</p> <%% end %> <%% else %> - <%% if @<%= plural_name %>.size > 0 %> + <%% unless @<%= plural_name %>.empty? %> <%%= will_paginate @<%= plural_name %>, :previous_label => '&laquo;', :next_label => '&raquo;' %> <ul id='sortable_list'> <%%= render :partial => "sortable_list" %> </ul> <%%= will_paginate @<%= plural_name %>, :previous_label => '&laquo;', :next_label => '&raquo;' %>