<% title "'#{@table.name}'"%>

Table: <%= @table.name %>


<% @table.columns.each do |column| %> <% end %> <% n = 0 %> <% @table.data.each do |record| %> <% @table.columns.each do |column| %> <% name = column.name %> <% end %> <% end %> <% n += 1 %> <% if n > 10 %> <% @table.columns.each do |column| %> <% end %> <% end %>
<%= sortable column.name %>
<%= format_value(column, record[name]) %>
<%= sortable column.name %>

Total: <%= pluralize @table.data.total_entries, 'record' %> Time: <%= @table.data.time %> seconds

<%= form_tag nil, method: :get do %> <%= select_tag :per_page, options_for_select([10, 15, 20, 50, 100, 200, 500], @table.data.per_page), class: 'per_page_pagination_select' %> <% end %>
<%= paginate_table_entries @table.data %>