Listing <%= plural_name.titleize %>

<%% paginated_section do -%> <% for attribute in attributes -%> <%%= sortable_table_header :name => "<%= attribute.column.human_name %>", :sort => "<%= attribute.name %>" %> <% end -%> <%%= sortable_table_header :name => "Created", :sort => "created_at" %> <%%= sortable_table_header :name => "Updated", :sort => "updated_at" %> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <% for attribute in attributes -%> <% if attribute == attributes.first -%> <% else -%> <% end -%> <% end -%> <%% end %> <% for attribute in attributes -%> <%%= sortable_table_header :name => "<%= attribute.column.human_name %>", :sort => "<%= attribute.name %>" %> <% end -%> <%%= sortable_table_header :name => "Created", :sort => "created_at" %> <%%= sortable_table_header :name => "Updated", :sort => "updated_at" %>
Actions
<%%= link_to <%= singular_name %>.<%= attribute.name %>, admin_<%= singular_name %>_path(<%= singular_name %>) %><%%=h <%= singular_name %>.<%= attribute.name %> %><%%=h <%= singular_name %>.created_at.to_formatted_s(:short_ordinal) %> <%%=h <%= singular_name %>.updated_at.to_formatted_s(:short_ordinal) %> <%%= link_to 'Edit', admin_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit', :title => 'Edit this <%= singular_name %>' %> <%%= link_to 'Delete', admin_<%= singular_name %>_path(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this <%= singular_name %>' %>
Actions
<%% end -%>