bisscomm/refinerycms-resource-categories

View on GitHub
app/views/refinery/admin/resources/_actions.html.erb

Summary

Maintainability
Test Coverage
<ul>
  <li><%= render '/refinery/admin/search', :url => refinery.admin_resources_path -%></li>
  <% unless controller.controller_name == 'resources' %>
    <li>
      <%= link_to t('.back_to_resources'), refinery.admin_resources_path, :class => 'back_icon' %>
    </li>
  <% end %>
  <li>
    <%= action_label(:upload,  refinery.new_admin_resource_path(:dialog => true), t('.upload_new'))%>
  </li>
</ul>

<ul class='collapsible_menu'>
  <li class='not_a_link'>
    <%= link_to t('.resource_categories.title'), '#',
                :class => 'folder_icon' %>
  </li>
  <li>
    <%= link_to t('.resource_categories.manage'), refinery.admin_resource_categories_path,
                :class => 'folder_edit_icon' %>
  </li>
  <li>
    <%= link_to t('.resource_categories.new'), refinery.new_admin_resource_category_path,
                :class => 'folder_add_icon' %>
  </li>
</ul>