Sha256: d93f4fdecbe76886b3048db23d4fd9621c8e6b08bbf7b8d23e51c4449903d9ce

Contents?: true

Size: 896 Bytes

Versions: 11

Compression:

Stored size: 896 Bytes

Contents

<%% if searching? %>
  <h2><%%= t('shared.admin.search.results_for', :query => params[:search]) %></h2>
  <%% if @<%= plural_name %>.any? %>
    <ul>
      <%%= render :partial => '<%= singular_name %>', :collection => @<%= plural_name %> %>
    </ul>
  <%% else %>
    <p><%%= t('shared.admin.search.no_results') %></p>
  <%% end %>
<%% else %>
  <%% if @grouped_<%= plural_name %>.any? -%>
    <%% @grouped_<%= plural_name %>.each do |container| %>
      <h3><%%= l((<%= singular_name %>_group = container.last).first.created_at, :format => :short) %></h3>
      <ul>
        <%%= render :partial => '<%= singular_name %>', :collection => <%= singular_name %>_group %>
      </ul>
    <%% end %>
  <%% else -%>
    <p>
      <strong><%%= t('no_<%= plural_name %>', :scope => 'refinery.<%= namespacing.underscore %>.admin.<%= plural_name %>.index') %></strong>
    </p>
  <%% end -%>
<%% end %>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
refinerycms-core-2.0.10 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.9 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.8 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.7 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.6 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.5 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.4 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.3 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.2 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.1 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb
refinerycms-core-2.0.0 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/_records.html.erb