vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb in refinerycms-0.9.4.5 vs vendor/plugins/refinery/lib/generators/refinery/templates/views/admin/index.html.erb in refinerycms-0.9.5

- old
+ new

@@ -1,38 +1,35 @@ <div id='actions'> - <h2>Actions</h2> <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 %>", "", :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> - +<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 %> - <h2><%= $title_name.pluralize %></h2> - <%%= 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;' %> + <%%= 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 %>. \ No newline at end of file