<%- if pagination? %> <%%= paginate @<%= plural_table_name %>, :remote => remote %> <%- end %>
<%- attributes.each do |attribute| -%> <%- attr_name = case attribute.type when :references, :belongs_to then "#{attribute.name}_id" else attribute.name end -%> <%- end -%> <%% @<%= plural_table_name %>.each do |<%= singular_table_name %>| -%> "> <%- attributes.each do |attribute| -%> <%- end -%> <%- if authorization? -%> <%%- if can? :update, <%= singular_table_name %> -%> <%- end -%> <%- if authorization? -%> <%%- end -%> <%- end -%> <%- if authorization? -%> <%%- if can? :destroy, <%= singular_table_name %> -%> <%- end -%> <%- if authorization? -%> <%%- end -%> <%- end -%> <%% end -%>
<%%= sortable :id, '#', remote<%= ", '#{underscore_resource_path(:parent_singular_resource_plural)}_path', '#{formatted_parent_resources("@")}'" if nested? %> %><%%= sortable :<%= attr_name %>, t('attributes.<%= singular_table_name %>.<%= attribute.name %>'), remote<%= ", '#{underscore_resource_path(:parent_singular_resource_plural)}_path', '#{formatted_parent_resources("@")}'" if nested? %> %>
<%%= number_with_delimiter <%= singular_table_name %>.id %><%= attribute_to_erb(attribute, singular_table_name) -%> <%%= link_to t(:show), <%= show_resource_path %><%= ", :remote => remote" if jquery_ui? %> %><%%= link_to t(:edit), <%= edit_resource_path %> %><%%= link_to t(:destroy), <%= destroy_resource_path %>, <%= key_value :confirm, "t(:sure?)" %>, <%= key_value :method, ":delete" %>, :remote => remote %>
<%- if pagination? -%> <%%= paginate @<%= plural_table_name %>, :remote => remote %> <%- end -%>