Sha256: 706ef91c5cfcb361582003b575e14c46eef72c17e6f13ebe725cfdd8b3122a73

Contents?: true

Size: 708 Bytes

Versions: 7

Compression:

Stored size: 708 Bytes

Contents

<table>

  <thead>
    <tr>
      <% headers.each do |header| %>
        <th><%= header %></th>
      <% end %>
    </tr>
  </thead>

  <% items.each do |item| %>
    <tr class="<%= cycle('even', 'odd') %>" id="<%= dom_id(item) %>">
      <% table_fields_for_item(item, fields).each_with_index do |field, index| %>
        <td>
          <%= field %>
          <% if index.zero? %>
            <div class="actions">
              <%= table_actions(model, item, association_name) %>
            </div>
          <% end %>
        </td>
      <% end %>
    </tr>
  <% end %>

  <thead>
    <tr>
      <% headers.each do |header| %>
        <th><%= header %></th>
      <% end %>
    </tr>
  </thead>

</table>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-3.0.10 app/views/admin/helpers/table/_table.html.erb
typus-3.0.9 app/views/admin/helpers/table/_table.html.erb
typus-3.0.8 app/views/admin/helpers/table/_table.html.erb
typus-3.0.7 app/views/admin/helpers/table/_table.html.erb
typus-3.0.6 app/views/admin/helpers/table/_table.html.erb
typus-3.0.5 app/views/admin/helpers/table/_table.html.erb
typus-3.0.4 app/views/admin/helpers/table/_table.html.erb