Sha256: ed306a8d98935be13da4aedcf8dfb39faecc45590c0d97faa7ec4a4d98572a4b

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

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">
  <li><%= link_to Typus::I18n.t("All"), :action => 'index' %> (<%= set_context.count %>)</li>
  <% 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})" if scope && @resource.respond_to?(scope) %></li>
  <% end %>
</ul>

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

<% 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

4 entries across 4 versions & 1 rubygems

Version Path
typus-3.1.0.rc4 app/views/admin/resources/index.html.erb
typus-3.1.0.rc3 app/views/admin/resources/index.html.erb
typus-3.1.0.rc2 app/views/admin/resources/index.html.erb
typus-3.1.0.rc1 app/views/admin/resources/index.html.erb