<%% if Admin::<%= class_name.pluralize %>Controller.searchable? %>
-
<%%= render :partial => "/shared/admin/search",
:locals => {
:url => admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_url
} %>
<%% end %>
-
<%%= link_to t('.create_new'), new_admin_<%= singular_name %>_url,
:class => "add_icon" %>
<%% if !searching? and Admin::<%= class_name.pluralize %>Controller.sortable? and <%= class_name %>.count > 1 %>
-
<%%= link_to t('.reorder', :what => "<%= singular_name.titleize.pluralize %>"),
admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_url,
:id => "reorder_action",
:class => "reorder_icon" %>
<%%= link_to t('.reorder_done', :what => "<%= singular_name.titleize.pluralize %>"),
admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_url,
:id => "reorder_action_done",
:style => "display: none;",
:class => "reorder_icon" %>
<%% end %>