Sha256: c27d24e56a4dffcdcd1f70d99819bbb6a07f7e5eb89053e1dda626a495efe45f
Contents?: true
Size: 1.79 KB
Versions: 3
Compression:
Stored size: 1.79 KB
Contents
<table class="list"> <thead> <th class="list_show"><%%= t 'system.index_id' %></th> <th class="list_edit"><%%= t 'system.index_edit' %></th> <%- @model.attributes.each do |attr| -%> <th><%%= t '<%= @model.plural_name %>.index_<%= attr.name %>' %></th> <%- end -%> <th class="list_remove"><%%= t 'system.index_remove' %></th> </thead> <%% @<%= @model.plural_name %>.each do |<%= @model.singular_name %>| %> <tr class="<%%= cycle 'odd_line', 'even_line' %>" > <td> <%%= link_to <%= @model.singular_name %>.id, <%= @model.object_name %>_path(<%= @model.singular_name %>) <%= ", :class => 'lightbox various fancybox.ajax'" if options.ajax %> %> </td> <td> <%%= link_to t('system.index_edit_label'), edit_<%= @model.object_name %>_path(<%= @model.singular_name %>) <%= ", :class => 'lightbox various fancybox.ajax'" if options.ajax %> %> </td> <%- @model.attributes.each do |attr| -%> <td> <%- if !attr.references? -%> <%%= <%= @model.singular_name %>.<%= attr.name %> %> <%- elsif attr.belongs_to? || attr.nested_one? -%> <%%= <%= @model.singular_name %>.<%= attr.type.singular_name %>.<%= attr.reference %> %> <%- elsif attr.has_many? or attr.nested_many? -%> <ul> <%% <%= @model.singular_name %>.<%= attr.type.plural_name %>.each do |<%= attr.type.singular_name %>| %> <li><%%= <%= attr.type.singular_name %>.<%= attr.reference %> %> </li> <%% end %> </ul> <%- end -%> </td> <%- end -%> <td> <%%= link_to t('system.index_remove_label'), <%= @model.to_route_object %>, :method => :delete, <%= ':remote => true,' if options.ajax %> :data => {:confirm => t('system.index_confirm_deletion')} %> </td> </tr> <%% end %> </table> <%%= pagination_footer @<%= @model.plural_name %> %>
Version data entries
3 entries across 3 versions & 1 rubygems