Sha256: 48de22ab1e04f6d6d73ddeadaff28cdd32e20891dda381e7c737835cbb07a9be

Contents?: true

Size: 1.74 KB

Versions: 9

Compression:

Stored size: 1.74 KB

Contents

<div id='actions'>
  <ul>
    <li>
      <%%= render :partial => "/shared/admin/search", :locals => {:url => admin_<%= plural_name %>_url} %>
    </li>
    <li>
      <%%= link_to "Create New <%= $title_name %>", new_admin_<%= singular_name %>_url, :class => "add_icon" %>
    </li>
  <%% if !searching? and <%= class_name %>.count > 1 %>
    <li>
      <%%= link_to "Reorder <%= $title_name.pluralize %>", admin_<%= plural_name %>_url, :id => "reorder_action", :class => "reorder_icon" %>
      <%%= link_to "Done Reordering <%= $title_name.pluralize %>", admin_<%= plural_name %>_url, :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %>
    </li>
  <%% end %>
  </ul>
</div>
<div id='records'>
  <%% if searching? %>
    <h2>Search Results for "<%%= params[:search] %>"</h2>
    <%% if @<%= plural_name %>.size > 0 %>
      <%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %>
    <%% else %>
      <p>Sorry, no results found.</p>
    <%% end %>
  <%% else %>
    <%% if @<%= plural_name %>.size > 0 %>
      <%%= will_paginate @<%= plural_name %>, :previous_label => '&laquo;', :next_label => '&raquo;' %>
       <ul id='sortable_list'>
        <%%= render :partial => "sortable_list" %>
       </ul>
      <%%= will_paginate @<%= plural_name %>, :previous_label => '&laquo;', :next_label => '&raquo;' %>
    <%% else %>
      <p>
        <strong>
          There are no <%= $title_name.pluralize.downcase %> yet.
          Click "Create New <%= $title_name %>" to add your first <%= $title_name.downcase %>.
        </strong>
      </p>
    <%% end %>
  <%% end %>
</div>
<%%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => false } if !searching? and <%= class_name %>.count > 1 %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
refinerycms-0.9.6.5 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.6.4 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.6.3 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.6.2 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.6.1 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.6 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.5.31 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.5.30 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb
refinerycms-0.9.5.29 vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb