Sha256: f2a91e10b406cd83851210c2a2123ab3fff2905f0c8aa8987bb8435812d1af8e
Contents?: true
Size: 1.33 KB
Versions: 5
Compression:
Stored size: 1.33 KB
Contents
<h1>Listing <%= plural_name %></h1> <ul class="choices"> <li><%%= link_to 'New <%= singular_name %>', new_admin_<%= singular_name %>_path %></li> </ul> <table> <thead> <tr> <% for attribute in attributes -%> <%%= sortable_table_header :name => "<%= attribute.column.human_name %>", :sort => "<%= attribute.name %>" %> <% end -%> </tr> <th colspan="2">Actions</th> </thead> <tbody> <%% @<%= plural_name %>.each do |<%= singular_name %>| %> <tr id="<%= singular_name %>-<%%= <%= singular_name %>.id %>"> <% for attribute in attributes -%> <% if attribute == attributes.first -%> <td><%%= link_to <%= singular_name %>.<%= attribute.name %>, admin_<%= singular_name %>_path(<%= singular_name %>) %></td> <% else -%> <td><%%=h <%= singular_name %>.<%= attribute.name %> %></td> <% end -%> <% end -%> <td><%%= link_to 'Edit', admin_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit' %></td> <td><%%= link_to 'Destroy', admin_<%= singular_name %>_path(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete, :class => 'delete' %></td> </tr> <%% end %> </tbody> <tfoot> <tr> <% for attribute in attributes -%> <%%= sortable_table_header :name => "<%= attribute.column.human_name %>", :sort => "<%= attribute.name %>" %> <% end -%> </tr> </tfoot> </table>
Version data entries
5 entries across 5 versions & 1 rubygems