Sha256: 24a5554ffec55ff4463ec6329c3a19b6216fbeca3fdf51da9c9f5b24349c8062
Contents?: true
Size: 1.69 KB
Versions: 14
Compression:
Stored size: 1.69 KB
Contents
<div id='actions'> <h2>Actions</h2> <ul> <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 %>", "", :id => "reorder_action", :class => "reorder_icon" %> <%%= link_to "Done Reordering <%= $title_name.pluralize %>", "", :id => "reorder_action_done", :style => "display: none;", :class => "reorder_icon" %> </li> <%% end %> </ul> </div> <div id='records'> <div id='list_actions'> <%%= render :partial => "/shared/admin/search", :locals => {:url => admin_<%= plural_name %>_url} %> </div> <%% 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 %> <h2><%= $title_name.pluralize %></h2> <%%= 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
14 entries across 14 versions & 1 rubygems