Sha256: 50ee7da32ababda00840c198ad7cc9cf87db1d47be7d02658d0f285a934a608b
Contents?: true
Size: 1.96 KB
Versions: 1
Compression:
Stored size: 1.96 KB
Contents
<% page_title = @resource.model_name.human.pluralize title(page_title) %> <% content_for :main_grid do %> <h2> <%= page_title %> <small><%= list_actions %></small> </h2> <%= display_flash_message %> <%= render 'index' %> <ul class="predefined_filters"> <li> <%= link_to Typus::I18n.t("All"), params.dup.cleanup.merge(:action => 'index') %> <%= "(#{resource.count})" if @resource.typus_options_for(:counters) %> </li> <% scopes.each do |scope| %> <li> <%= link_to Typus::I18n.t(scope.humanize), :scope => scope %> <%= "(#{@resource.send(scope).count})" if @resource.typus_options_for(:counters) %> </li> <% end %> <% predefined_filters.each do |filter, action, scope| %> <li> <% url = action.is_a?(String) ? params.dup.cleanup.merge(:action => action) : action %> <%= link_to Typus::I18n.t(filter), url %> <%= "(#{@resource.send(scope).count})" if @resource.typus_options_for(:counters) && scope && @resource.respond_to?(scope) %> </li> <% end %> <% if resource.any? && (formats = resource.typus_options_for(:export).extract_settings).any? %> <li>|</li> <% formats.each do |format| %> <li><%= link_to format.upcase, params.merge(:format => format) %></li> <% end %> <% end %> </ul> <% if (build_filters || search) %> <div class="filters"> <%= build_filters %> <%= search %> </div> <% end %> <% if @items.any? -%> <% if controller.respond_to?(:bulk) %> <%= build_actions { build_list(@resource, fields, @items) } %> <% else %> <%= build_list(@resource, fields, @items) %> <% end %> <%= admin_paginate(@items, Typus.pagination) %> <% else %> <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human(:count => 2)) %></p> <% end %> <% end %> <div class="grid_2"> <%= build_sidebar %> </div> <div class="grid_10"> <%= yield :main_grid %> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typus-3.1.9 | app/views/admin/resources/index.html.erb |