Sha256: f99882006a51a88ff9fc574c898997dc6a8f55c5c1e395b06d397bb7451bfc68
Contents?: true
Size: 1.03 KB
Versions: 1
Compression:
Stored size: 1.03 KB
Contents
<% page_title = @resource.model_name.human(:count => 2) 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' %> (<%= 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 %> </ul> <% if (build_filters || search) %> <div class="filters"> <%= build_filters %> <%= search %> </div> <% end %> <% if @items.any? -%> <%= build_list(@resource, fields, @items) %> <%= will_paginate(@items, Typus.pagination) %> <% else %> <p><%= Typus::I18n.t("No %{resources} found.", :resources => @resource.model_name.human(:count => 2)) %></p> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
typus-3.0.12 | app/views/admin/resources/index.html.erb |