app/views/trestle/table/_table.html.erb in trestle-0.8.6 vs app/views/trestle/table/_table.html.erb in trestle-0.8.7

- old
+ new

@@ -1,23 +1,19 @@ <% table = table.renderer(self) %> <div class="table-container"> - <%= content_tag(:table, class: table.classes, data: table.data) do %> + <%= content_tag(:table, id: table.id, class: table.classes, data: table.data) do %> <thead> <tr> <% table.columns.each do |column| %> <%= content_tag(:th, column.header, class: column.classes, data: column.data) %> <% end %> </tr> </thead> <tbody> <% collection.each do |instance| %> - <%= content_tag(:tr, table.row.options(instance)) do %> - <% table.columns.each do |column| %> - <%= content_tag(:td, column.content(instance), class: column.classes, data: column.data) %> - <% end %> - <% end %> + <%= table.row.render(instance) %> <% end %> </tbody> <% end %> </div>