% @title = current_resource.human %>
Sorry, but there is no records in <%= current_resource.human %>
<% else %><%= render_head field %> | <% end -%>Actions |
---|---|
<%= render_field record, field %> | <% end -%>
<%= link_to 'show', current_resource.path(record), :class => 'show_entry' if controller.show_fields || resource_children.present? %>
<%= link_to 'edit', current_resource.edit_path(record), :class => 'edit_entry' if controller.update_fields || controller.form_fields %>
<%= link_to 'destroy', current_resource.path(record), :confirm => "Are you sure?", :method => :delete, :class => 'remove_entry' if current_config.destroy %>
<% current_resource.children(:post_id => record.id).each do |child| %>
<% if child.plural? %>
<%= link_to "#{child.human}(#{child.collection.size})", child.index_path %> <% else %><%= link_to "#{child.member ? 'Edit' : 'Add'} #{child.human}", child.index_path %> <% end %> <% end %> |