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

- old
+ new

@@ -1,42 +1,42 @@ <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 %>", "", :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> + <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='records'> <%% if searching? %> <h2>Search Results for "<%%= params[:search] %>"</h2> <%% if @<%= plural_name %>.size > 0 %> - <%%= render :partial => "<%= singular_name %>", :collection => @<%= plural_name %> %> + <%%= 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 %> + <%% 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 %> \ No newline at end of file +<%%= render :partial => "/shared/admin/make_sortable", :locals => {:tree => false } if !searching? and <%= class_name %>.count > 1 %>