Sha256: da2635a91b7f6471bec0580560b20ccd7cc86b30a00905667686e892474354d6

Contents?: true

Size: 499 Bytes

Versions: 4

Compression:

Stored size: 499 Bytes

Contents

<% table = table.renderer(self) %>

<div class="table-container">
  <%= 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| %>
        <%= table.row.render(instance) %>
      <% end %>
    </tbody>
  <% end %>
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
trestle-0.8.10 app/views/trestle/table/_table.html.erb
trestle-0.8.9 app/views/trestle/table/_table.html.erb
trestle-0.8.8 app/views/trestle/table/_table.html.erb
trestle-0.8.7 app/views/trestle/table/_table.html.erb