Sha256: 2422b15d6783852fdd0ea4821dbf8fb5f35fc45499f5e2a3d093bf9ebc4a867d
Contents?: true
Size: 1.17 KB
Versions: 3
Compression:
Stored size: 1.17 KB
Contents
<% @title = resource.human %> <h1><%= @title %></h1> <%= 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 %> <%= paginate records, :url => resource.collection_path(:page => '') %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.23 | app/views/puffer/base/index.html.erb |
puffer-0.0.22 | app/views/puffer/base/index.html.erb |
puffer-0.0.21 | app/views/puffer/base/index.html.erb |