Sha256: d0e4cf9235981c49a3da159605f2090d6db8441de718c583195d3b29048b8e0c
Contents?: true
Size: 1.34 KB
Versions: 8
Compression:
Stored size: 1.34 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"), params.dup.cleanup.merge(:action => 'index') %> (<%= resource.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 %> <% unless resource.count.zero? %> <li>|</li> <li><%= link_to "CSV", :format => 'csv' %></li> <li><%= link_to "XML", :format => 'xml' %></li> <% 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 %> <%= paginate(@items, Typus.pagination) %> <% else %> <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human.downcase.pluralize) %></p> <% end %>
Version data entries
8 entries across 8 versions & 1 rubygems