% model_name = @model.name.underscore -%>
<% modelName = @model.name -%>
<% title_fields = @@reserved_title_names.select {|f| @fields.include? f}-%>
<% if title_fields.any? -%>
<%%= @<%=model_name %>.<%=title_fields[0]%>%>
<% end -%>
<%%= link_to 'List', admin_<%=model_name.pluralize %>_path, :class => "action list" %> |
<%%= link_to 'Edit', edit_admin_<%=model_name %>_path(@<%= model_name%>), :class => "action edit" %> |
<%%= link_to 'Destroy', admin_<%=model_name%>_path(@<%=model_name%>), :method => :delete, :confirm => "Are you sure?", :class => "action destroy" %>