<% for attribute in attributes -%>
<%%= <%= singular_table_name %>.<%= attribute.name %> %> |
<% end -%>
<% if defined? ::Ixtlan::Guard -%>
<%% if allowed?(:<%= table_name %>, :show) %>
<% end -%>
<%%= link_to 'Show', <%= singular_table_name %> %> |
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<%% if allowed?(:<%= table_name %>, :update) %>
<% end -%>
<%%= link_to 'Edit', edit_<%= singular_table_name %>_path(<%= singular_table_name %>) %> |
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<%% if allowed?(:<%= table_name %>, :destroy) %>
<% end -%>
<% if options[:optimistic] && options[:timestamps] -%>
<%%= link_to 'Destroy', <%= singular_table_name %>_path(<%= singular_table_name %>) + "?<%= singular_table_name %>[updated_at]=#{<%= singular_table_name %>.updated_at.utc.strftime('%Y-%m-%d %H:%M:%S') + ("%06d" % <%= singular_table_name %>.updated_at.utc)}", :confirm => 'Are you sure?', :method => :delete %><% else -%><%%= link_to 'Destroy', <%= singular_table_name %>, :confirm => 'Are you sure?', :method => :delete %>
<% end -%> |
<% if defined? ::Ixtlan::Guard -%>
<%% end %>
<% end -%>
<%% end %>