lib/generators/caseadilla/scaffold/templates/views/_table.html.erb
<!-- Scaffolding generated by Caseadilla <%= caseadilla_get_full_version_string %> -->
<table class="table table-striped table-hover table-condensed">
<thead>
<tr>
<% for attribute in attributes %><th><%%= caseadilla_sort_link "<%= attribute.name.humanize %>", :<%= attribute.name %> %></th>
<% end %><% unless @read_only %><th> </th><% end %>
</tr>
</thead>
<%% <%= plural_name %>.each do |<%= singular_name %>| %>
<tr>
<% attributes.each do |attribute| %><td><%%= caseadilla_table_cell_link <%= singular_name %>.<%= attribute.name %>, caseadilla_<%= singular_name %>_path(<%= singular_name %>) %></td>
<% end %><% unless @read_only %><td class="delete">
<%%= link_to(caseadilla_show_row_icon("trash"), caseadilla_<%= singular_name %>_path(<%= singular_name %>), :method => :delete, :data => { :confirm => "Are you sure you want to delete this <%= singular_name.humanize.downcase %>?" }) %>
</td><% end %>
</tr>
<%% end %>
</table>