Sha256: a52116939a2dc79964f1594bbc728573a3098cf641e56ef6697edd0799b52621
Contents?: true
Size: 1.61 KB
Versions: 1
Compression:
Stored size: 1.61 KB
Contents
<% @title = resource.human %> <h1><%= @title %></h1> <%= will_paginate records, :url => resource.index_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 'show', resource.path(record), :class => 'show_entry' if show_fields.present? || resource.children.present? %> <%= link_to 'edit', resource.edit_path(record), :class => 'edit_entry' if update_fields.present? %> <%= link_to 'destroy', resource.path(record), :confirm => "Are you sure?", :method => :delete, :class => 'remove_entry' 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.index_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.index_path %> <%= link_to resource.member.to_title, resource.path unless resource.plural? %> <% end %> <%= link_to resource.plural? ? resource.human : resource.member.to_title, resource.index_path %> </ul> <% end %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
puffer-0.0.7 | app/views/puffer/index.html.erb |