Sha256: f2ce9e5665b849dfe87029da874854e073dd1b5ad2784d72c2ade8f55aa1e7a5

Contents?: true

Size: 791 Bytes

Versions: 1

Compression:

Stored size: 791 Bytes

Contents

<% content_for :head do %>
  <%= stylesheet_link_tag 'sortable_nested_set' %>
  <%= javascript_include_tag 'jquery.hoverIntent.minified.js',
                             'jquery.ui.nestedSortable.js',
                             'sortable_nested_set' %>
<% end %>

<%= render_tree categories, :id => :sns_categories,
                            :class => :sortable,
                            'data-url' => sns_sort_path(:category_class => @category_class) do |category, child| %>
  <li id="<%= category.class.name.underscore %>_<%= category.id %>" class="sns_category">
    <%= render :partial => 'sortable_nested_set/category', :object => category %>
    <ul><%= render :partial => 'sortable_nested_set/item', :collection => category.sns_items %></ul>
    <%= child %>
  </li>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sortable_nested_set-0.3.0 app/views/sortable_nested_set/_tree.html.erb