<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->

<table class="table table-striped table-hover table-condensed">
	<thead>
		<tr>
			<% for attribute in attributes %><th><%%= casein_sort_link "<%= attribute.name.humanize %>", :<%= attribute.name %> %></th>
			<% end %><% unless @read_only %><th>&nbsp;</th><% end %>
		</tr>
	</thead>
	
	<%% <%= plural_name %>.each do |<%= singular_name %>| %>
		<tr>
			<% attributes.each do |attribute| %><td><%%= casein_table_cell_link <%= singular_name %>.<%= attribute.name %>, casein_<%= singular_name %>_path(<%= singular_name %>) %></td>
			<% end %><% unless @read_only %><td class="delete">
				<%%= link_to(casein_show_row_icon("trash"), casein_<%= singular_name %>_path(<%= singular_name %>), :method => :delete, :data => { :confirm => "Are you sure you want to delete this <%= singular_name.humanize.downcase %>?" }) %><% end %>
			</td>
		</tr>
	<%% end %>
</table>
<!-- Scaffolding generated by Casein <%= casein_get_full_version_string %> -->

<table class="table table-striped table-hover table-condensed">
	<thead>
		<tr>
			<% for attribute in attributes %><th><%%= casein_sort_link "<%= attribute.name.humanize %>", :<%= attribute.name %> %></th>
			<% end %><% unless @read_only %><th>&nbsp;</th><% end %>
		</tr>
	</thead>
	
	<%% <%= plural_name %>.each do |<%= singular_name %>| %>
		<tr>
			<% attributes.each do |attribute| %><td><%%= casein_table_cell_link <%= singular_name %>.<%= attribute.name %>, casein_<%= singular_name %>_path(<%= singular_name %>) %></td>
			<% end %><% unless @read_only %><td class="delete">
				<%%= link_to(casein_show_row_icon("trash"), casein_<%= 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>
Fix for read-only table partial generator
Fix for read-only table partial generator
