Sha256: 4a9a7deb5e5a738fa379f7b41c263a2c792abdef20cd47fd68e88e81dd7bd6ac

Contents?: true

Size: 605 Bytes

Versions: 3

Compression:

Stored size: 605 Bytes

Contents

<% @title ||= collection_title %>

<table>
  <thead>
    <tr>
      <% attributes.each do |attribute_name| %>
        <th><%= attribute_human_name(attribute_name) %></th>
      <% end %>
      <th>&nbsp;</th>
    </tr>
  </thead>
  <tbody>
    <% collection.each do |resource| %>
      <tr>
        <% attributes.each do |attribute_name| %>
          <td><%= attribute_value(resource, attribute_name) %></td>
        <% end %>
        <td class="actions"><%= render_actions_for(resource) %></td>
      </tr>
    <% end %>
  </tbody>
</table>

<%=
  if defined?(Kaminari)
    paginate(collection)
  end
%>

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
power_resource-0.0.1 app/views/power_resource/base/_collection.html.erb
noa-resource-0.0.2 app/views/noa/resource/base/_collection.html.erb
noa-resource-0.0.1 app/views/noa/resource/base/_collection.html.erb