Sha256: f2d62609a4e4311840249d28b403cc71c952cf723d55a0ba70eace78de13288e

Contents?: true

Size: 1.07 KB

Versions: 9

Compression:

Stored size: 1.07 KB

Contents

<%%= render 'submenu' %>
<div id='records'>
  <%% if searching? %>
    <%%= link_to t('cancel_search', :scope => 'refinery.admin.search'), refinery.<%= namespacing.underscore %>_admin_<%= plural_name %>_path, :class => "cancel-search" %>
    <h2><%%= t('results_for_html', :scope => 'refinery.admin.search', :query => h(params[:search])).html_safe %></h2>
    <%% if @<%= plural_name %>.any? %>
      <ul>
        <%%= render :partial => '<%= singular_name %>', :collection => @<%= plural_name %> %>
      </ul>
    <%% else %>
      <p><%%= t('no_results', :scope => 'refinery.admin.search') %></p>
    <%% end %>
  <%% else %>
    <%% if @grouped_<%= plural_name %>.any? -%>
      <%% @grouped_<%= plural_name %>.each do |container| %>
        <h3><%%= l((<%= singular_name %>_group = container.last).first.created_at) %></h3>
        <ul>
          <%%= render :partial => '<%= singular_name %>', :collection => <%= singular_name %>_group %>
        </ul>
      <%% end %>
    <%% else -%>
      <p>
        <strong><%%= t('.no_spam') %></strong>
      </p>
    <%% end -%>
  <%% end %>
</div>

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
refinerycms-forms-2.0.0 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-forms-1.0.1 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-forms-1.0.0 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-core-2.1.5 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-core-2.1.4 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-core-2.1.3 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-core-2.1.2 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-core-2.1.1 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb
refinerycms-core-2.1.0 lib/generators/refinery/form/templates/app/views/refinery/namespace/admin/plural_name/spam.html.erb