Sha256: 6032600558d15a7352f5448ca9cf7998d3ec10e72306013c072ec0cfb651cb2b

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

<ul>
  <%% if ::Phoenix::Admin::<%= class_name.pluralize %>Controller.searchable? %>
    <li>
      <%%= render :partial => "/refinery/admin/search",
                  :locals => {
                    :url => main_app.refinery_admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_path
                  } %>
    </li>
  <%% end %>
  <li>
    <%%= link_to t('.create_new'), main_app.new_refinery_admin_<%= singular_name %>_path,
                 :class => "add_icon" %>
  </li>
<%% if !searching? && ::Phoenix::Admin::<%= class_name.pluralize %>Controller.sortable? && ::Phoenix::<%= class_name.pluralize %>::<%= class_name %>.any? %>
  <li>
    <%%= link_to t('.reorder', :what => "<%= singular_name.titleize.pluralize %>"),
                 main_app.refinery_admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_path,
                 :id => "reorder_action",
                 :class => "reorder_icon" %>

    <%%= link_to t('.reorder_done', :what => "<%= singular_name.titleize.pluralize %>"),
                 main_app.refinery_admin_<%= plural_name %><%= "_index" if plural_name == singular_name%>_path,
                 :id => "reorder_action_done",
                 :style => "display: none;",
                 :class => "reorder_icon" %>
  </li>
<%% end %>
</ul>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
phoenix_core-0.2.0.beta lib/generators/phoenix/extension/templates/app/views/phoenix/plural_name/admin/plural_name/_actions.html.erb