Sha256: b12658d8982c2e52492febd1f040abd2ff5a0382fd28d5a80ac03546e2a372c7

Contents?: true

Size: 806 Bytes

Versions: 1

Compression:

Stored size: 806 Bytes

Contents

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

<% content_for :sidebar, build_sidebar %>

<h2>
  <%= page_title %>
</h2>

<%= display_flash_message %>

<%= render 'index' %>

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

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
typus-3.0.4 app/views/admin/resources/index.html.erb