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 => '«', :next_label => '»' %> <ul id='sortable_list'> <%%= render :partial => "sortable_list" %> </ul> <%%= will_paginate @<%= plural_name %>, :previous_label => '«', :next_label => '»' %> <%% 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