Sha256: 562d3df0e935bad09e2fcced334a6b0dc1f8276f4ecbc410c995c2b67b5603d2

Contents?: true

Size: 737 Bytes

Versions: 7

Compression:

Stored size: 737 Bytes

Contents

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
typus-3.1.0.rc7 test/fixtures/rails_app/app/views/admin/hits/index.html.erb
typus-3.1.0.rc6 test/fixtures/rails_app/app/views/admin/hits/index.html.erb
typus-3.1.0.rc5 test/fixtures/rails_app/app/views/admin/hits/index.html.erb
typus-3.1.0.rc4 test/fixtures/rails_app/app/views/admin/hits/index.html.erb
typus-3.1.0.rc3 test/fixtures/rails_app/app/views/admin/hits/index.html.erb
typus-3.1.0.rc2 test/fixtures/rails_app/app/views/admin/hits/index.html.erb
typus-3.1.0.rc1 test/fixtures/rails_app/app/views/admin/hits/index.html.erb