Sha256: 67421dd6f598000074b16259beecba960cd5d34fc33d0e7d625c10ead75d187f

Contents?: true

Size: 918 Bytes

Versions: 10

Compression:

Stored size: 918 Bytes

Contents

<h1><%= t('iord.titles.list', models: collection_name) %></h1>
<%= iordh.link_to_create %>
<%= iordh.link_to_iterate_if_enabled %>
<br/>
<br/>
<%= iordh.search_if_enabled %>
<table>
  <thead>
    <tr>
      <% index_attrs.each do |attr| -%>
        <th>
          <%= field_name(attr).to_s.humanize %>
          <%= iordh.sort_if_enabled(field_attribute(attr)) %>
        </th>
      <% end %>
      <th>Actions</th>
    </tr>
  </thead>
  <tbody>
    <% @collection.each do |resource| %>
      <tr>
        <% index_attrs.each do |attr| %>
          <td>
            <%= field_value(resource, attr) %>
          </td>
        <% end %>
        <td>
          <%= iordh.link_to_show(resource) %>
          &nbsp;
          <%= iordh.link_to_edit(resource) %>
          &nbsp;
          <%= iordh.link_to_destroy(resource) %>
        </td>
      </tr>
    <% end %>
  </tbody>
</table>
<%= iordh.paginate_if_enabled %>

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
iord-1.2.2 app/views/iord/index.html.erb
iord-1.2.1 app/views/iord/index.html.erb
iord-1.2.0 app/views/iord/index.html.erb
iord-1.1.3 app/views/iord/index.html.erb
iord-1.1.2 app/views/iord/index.html.erb
iord-1.1.1 app/views/iord/index.html.erb
iord-1.1.0 app/views/iord/index.html.erb
iord-1.0.3 app/views/iord/index.html.erb
iord-1.0.2 app/views/iord/index.html.erb
iord-1.0.1 app/views/iord/index.html.erb