Sha256: 35182cd1033ee6180f5b6198819c35d405178942e0605a73127ed56c6e543bf7

Contents?: true

Size: 540 Bytes

Versions: 15

Compression:

Stored size: 540 Bytes

Contents

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

<div class="table-container">
  <%= content_tag(:table, id: table.id, class: table.classes, data: table.data) do %>
    <% if table.header? %>
    <thead>
      <tr>
        <% table.columns.each do |column| %>
          <%= content_tag(:th, column.header, class: column.classes, data: column.data) %>
        <% end %>
      </tr>
    </thead>
    <% end %>

    <tbody>
      <% collection.each do |instance| %>
        <%= table.row.render(instance) %>
      <% end %>
    </tbody>
  <% end %>
</div>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
trestle-0.10.0 app/views/trestle/table/_table.html.erb
trestle-0.10.0.pre2 app/views/trestle/table/_table.html.erb
trestle-0.10.0.pre app/views/trestle/table/_table.html.erb
trestle-0.9.8 app/views/trestle/table/_table.html.erb
trestle-0.9.7 app/views/trestle/table/_table.html.erb
trestle-0.9.6 app/views/trestle/table/_table.html.erb
trestle-0.9.5 app/views/trestle/table/_table.html.erb
trestle-0.9.4 app/views/trestle/table/_table.html.erb
trestle-0.9.3 app/views/trestle/table/_table.html.erb
trestle-0.9.2 app/views/trestle/table/_table.html.erb
trestle-0.9.1 app/views/trestle/table/_table.html.erb
trestle-0.9.0 app/views/trestle/table/_table.html.erb
trestle-0.8.13 app/views/trestle/table/_table.html.erb
trestle-0.8.12 app/views/trestle/table/_table.html.erb
trestle-0.8.11 app/views/trestle/table/_table.html.erb