<%
  page_title = @resource.model_name.human.pluralize
  title(page_title)
%>

<% content_for :sidebar, build_sidebar %>

<h2>
  <%= page_title %>
  <small><%= list_actions %></small>
</h2>

<%= display_flash_message %>

<%= render 'index' %>

<ul class="predefined_filters">
  <% predefined_filters.each do |filter, action, scope| %>
    <li><%= link_to Typus::I18n.t(filter), params.dup.cleanup.merge(:action => action) %> (<%= @resource.send(scope).count %>)</li>
  <% end %>
</ul>

<% if (build_filters || search) %>
  <div class="filters">
    <%= build_filters %>
    <%= search %>
  </div>
<% end %>

<% if @items.any? -%>
  <%= build_list(@resource, fields, @items) %>
  <%= will_paginate(@items, Typus.pagination) %>
<% else %>
  <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p>
<% end %>

<%
  page_title = @resource.model_name.human.pluralize
  title(page_title)
%>

<% content_for :sidebar, build_sidebar %>

<h2>
  <%= page_title %>
  <small><%= list_actions %></small>
</h2>

<%= display_flash_message %>

<%= render 'index' %>

<ul class="predefined_filters">
  <% predefined_filters.each do |filter, action, scope| %>
    <% url = action.is_a?(String) ? params.dup.cleanup.merge(:action => action) : action %>
    <li><%= link_to Typus::I18n.t(filter), url %> (<%= @resource.send(scope).count %>)</li>
  <% end %>
</ul>

<% if (build_filters || search) %>
  <div class="filters">
    <%= build_filters %>
    <%= search %>
  </div>
<% end %>

<% if @items.any? -%>
  <%= build_list(@resource, fields, @items) %>
  <%= will_paginate(@items, Typus.pagination) %>
<% else %>
  <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p>
<% end %>

Verify class of provided action
Verify class of provided action
