<% @body_class = 'change-list' @content_class = 'flex' @title = "Select #{human_model.downcase} to change" @tools = [link_to( "Add #{human_model.downcase}", { :model => params[:model], :action => 'edit' }, { :class => 'addlink' } )] %>
<% if model.searchable? %>
<% end %> <% model_filters = model.filters unless model_filters.empty? %>

Filter

<% model_filters.each do |filter| -%>

By <%=h model.column_label( filter.name ).downcase %>

<% end -%>
<% end %> <% admin_table( :model => model ) do |builder| builder.outer do builder.prologue do model.list_columns.build builder end @objects.each do |obj| builder.with_object(obj) do model.list_columns.build builder end end builder.epilogue do end end end %>

<%= pagination_links_each(@pages, :link_to_current_page => true, :window_size => 3) do |num| "\n " + case num when @pages.current_page.number %(#{num}) when @pages.last_page.number link_to num.to_s, similar_list_page(:page => num), { :class => 'end' } else link_to num.to_s, similar_list_page(:page => num) end end %> <%= @pages.item_count %> <%=h human_model( nil, @pages.item_count ).downcase %>