Sha256: de0bcb1414b2d019da1c8940f0d1ec2f64fb445506b3f534df694c5fddddf15d

Contents?: true

Size: 1.18 KB

Versions: 4

Compression:

Stored size: 1.18 KB

Contents

<% @title = resource.human %>
<h1><%= @title %></h1>
<%= will_paginate records, :url => resource.collection_path(:page => '') %>
<% if records.present? %>
  <table class="list_table">
    <thead>
      <tr>
      <% index_fields.each do |field| -%>
        <th><%= render_head field %></th>
      <% end -%>
        <th class="actions">Actions</th>
      </tr>
    </thead>
    <tbody>
    <% records.each do |record| -%>
      <tr>
      <% index_fields.each do |field| -%>
        <td><%= render_field field, record %></td>
      <% end -%>
        <td class="actions">
          <%= link_to 'edit', resource.edit_path(record) if update_fields.present? %>
          <% controller._members.each do |member| %>
            <%= link_to member.label, resource.member_path(record, :action => member.action) if member.display? %>
          <% end %>
          <%= link_to 'destroy', resource.member_path(record), :confirm => "Are you sure?", :method => :delete if configuration.destroy %>
        </td>
      </tr>
    <% end -%>
    </tbody>
  </table>
<% else %>
  <p>Sorry, but there is no records in <%= resource.human %></p>
<% end %>
<%= will_paginate records, :url => resource.collection_path(:page => '') %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
puffer-0.0.19 app/views/puffer/index.html.erb
puffer-0.0.18 app/views/puffer/index.html.erb
puffer-0.0.17 app/views/puffer/index.html.erb
puffer-0.0.16 app/views/puffer/index.html.erb