<%%= link_to 'New <%= singular_name %>', new_admin_<%= singular_name %>_path, :class => 'icon icon-add' %>

<%= plural_name.humanize %>

<%% if @<%= plural_name %>.blank? %>

No data to display

<%% else %> <% for attribute in attributes -%> <% if defined?(Searchlogic) -%> <% else -%> <% end -%> <% end -%> <%%= form_tag(destroy_all_admin_<%= plural_name %>_path, :method => :delete) do %> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <% for attribute in attributes -%> <% end -%> <%% end %> <%% end %>
<%%= image_tag "admin/true.png" %><%%= order(@search, {:by => :<%= attribute.name %>}) %><%= attribute.human_name %>
<%%= check_box_tag('ids[]', <%= singular_name %>.id, nil, :id => "ids_#{<%= singular_name %>.id}") %> <%%=h <%= singular_name %>.<%= attribute.name %> %> <%%= link_to 'Show', [:admin, <%= singular_name %>], :class => 'icon icon-details' %> <%%= link_to 'Edit', edit_admin_<%= singular_name %>_path(<%= singular_name %>), :class => 'icon icon-edit' %> <%%= link_to 'Destroy', [:admin, <%= singular_name %>], :confirm => 'Are you sure?', :method => :delete, :class => 'icon icon-del' %>
<%%= submit_tag "Delete", :confirm => 'Are you sure?' %>
<%% end %> <% # Remove unneeded stuff here if defined?(Searchlogic) || defined?(WillPaginate) # If you have WillPaginate installed (you should!) %> <%%= will_paginate(@<%= plural_name %>) %> <% end %>