Sha256: 93a364a9c5d422af9a000bc065de38f1004589bd9a2b1afb34627579f09fdfdd
Contents?: true
Size: 1.65 KB
Versions: 5
Compression:
Stored size: 1.65 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 => '') %> <% if false %> <% content_for :additional_navigation do %> <ul class="buttons"> <% resource.ancestors.each do |resource| %> <%= link_to resource.plural? ? resource.human : resource.member.to_title, resource.collection_path %> <%= link_to resource.member.to_title, resource.member_path unless resource.plural? %> <% end %> <%= link_to resource.plural? ? resource.human : resource.member.to_title, resource.collection_path %> </ul> <% end %> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems