Sha256: df7a70120fe1de297156e8a35cff6b1633ebe7c3e080ccf11dc0fed2e35c03df
Contents?: true
Size: 1003 Bytes
Versions: 3
Compression:
Stored size: 1003 Bytes
Contents
<% page_title = _t("%{resources}", :resources => @resource.model_name.human.pluralize) title(page_title) %> <% content_for :sidebar, build_sidebar %> <h2> <%= page_title %> <small><%= remove_filter_link %></small> </h2> <%= display_flash_message %> <%= typus_block %> <% if (build_filters || search) && !@resource.count.zero? %> <div class="filters"> <%= build_filters %> <%= search %> </div> <% end %> <% unless @items.count.zero? -%> <%= raw build_list(@resource, @fields, @items) %> <%= pagination %> <% else %> <% if @resource.count.zero? %> <p> <%= _t("There are no %{records}.", :records => @resource.model_name.human.pluralize.downcase) %> <%= link_to _t("Create one now."), { :action => "new" } if @current_user.can?('create', @resource) %> </p> <% else %> <div class="flash notice"> <%= _t("There are no %{records} under this filter.", :records => @resource.model_name.human.pluralize.downcase) %> </div> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
typus-1.0.0.pre8 | app/views/admin/resources/index.html.erb |
typus-1.0.0.pre7 | app/views/admin/resources/index.html.erb |
typus-1.0.0.pre6 | app/views/admin/resources/index.html.erb |