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