Sha256: e255e97094b5d27803b6ba51638a045622ede736c87cfd07671c5897cc60b9be
Contents?: true
Size: 1.98 KB
Versions: 4
Compression:
Stored size: 1.98 KB
Contents
<h1>Listing <%= plural_name.titleize %></h1> <ul class="choices"> <li><%%= link_to 'New <%= singular_name.titleize %>', new_admin_<%= singular_name %>_path %></li> </ul> <%% paginated_section do -%> <table> <thead> <tr> <% for attribute in attributes -%> <%%= sortable_table_header :name => "<%= attribute.column.human_name %>", :sort => "<%= attribute.name %>" %> <% end -%> <%%= sortable_table_header :name => "Created", :sort => "created_at" %> <%%= sortable_table_header :name => "Updated", :sort => "updated_at" %> <th colspan="2">Actions</th> </tr> </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><%%=h <%= singular_name %>.created_at.to_formatted_s(:short_ordinal) %></td> <td><%%=h <%= singular_name %>.updated_at.to_formatted_s(:short_ordinal) %></td> <td><%%= link_to 'Edit', admin_<%= singular_name %>_path(<%= singular_name %>), :class => 'edit', :title => 'Edit this <%= singular_name %>' %></td> <td><%%= link_to 'Delete', admin_<%= singular_name %>_path(<%= singular_name %>), :confirm => 'Are you sure?', :method => :delete, :class => 'delete', :title => 'Delete this <%= singular_name %>' %></td> </tr> <%% end %> </tbody> <tfoot> <tr> <% for attribute in attributes -%> <%%= sortable_table_header :name => "<%= attribute.column.human_name %>", :sort => "<%= attribute.name %>" %> <% end -%> <%%= sortable_table_header :name => "Created", :sort => "created_at" %> <%%= sortable_table_header :name => "Updated", :sort => "updated_at" %> <th colspan="2">Actions</th> </tr> </tfoot> </table> <%% end -%>
Version data entries
4 entries across 4 versions & 1 rubygems