Sha256: 76e6684a70654389e10699f6f25e9807fa60da8069b4f5c8786f0189a5527a0e
Contents?: true
Size: 1 KB
Versions: 8
Compression:
Stored size: 1 KB
Contents
<% @title = resource.human %> <h1><%= @title %></h1> <% if records.present? %> <div class="rui-paginator" data-paginator="{total: <%= records.num_pages %>, current: <%= params[:page] || 1 %>, link: {href: '<%= resource.collection_path(:page => '%{page}') %>'}}"></div> <%= render :layout => 'table', :locals => {:table_fields => index_fields} do |record| %> <%= link_to 'edit', resource.edit_path(record) if update_fields.present? %> <% _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 %> <% end %> <div class="rui-paginator" data-paginator="{total: <%= records.num_pages %>, current: <%= params[:page] || 1 %>, link: {href: '<%= resource.collection_path(:page => '%{page}') %>'}}"></div> <% else %> <p>Sorry, but there is no records in <%= resource.human %></p> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems