Sha256: bac7b75f7e4cd4fb66be2f211e09489f16d4a4dda9c6605d051ab01eacf072d9
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 KB
Contents
<% cpath = category.class.name.underscore + '_path' %> <%= render 'sortable_nested_set/toggle', :category_type => category.class.name.underscore, :id => category.id, :state => 'open' %> <%= content_tag :span, category, :class => :handle %> <%= content_tag :span, link_to('-', category), :id => "toggle_actions_category_#{category.id}", :class => :mega %> <%= content_tag :div, :id => "actions_category_#{category.id}", :class => :links do %> <%= link_to_unless_current 'show', category %> | <%= link_to 'edit', send("edit_#{cpath}", category) %> | <% unless current_page? send(cpath, category) %> <%= link_to 'remove', send("sns_destroy_category_#{cpath}", category), :confirm => 'Are you sure?', :method => :delete, :remote => true %> | <% end %> <%= link_to 'add subcategory', send("sns_add_subcategory_#{cpath}", category) %> | <%= link_to 'add item', send("sns_add_item_#{cpath}", category) %> <% end %> <%= content_tag :div, :id => "items_#{category.id}", :class => :items do %> <%= render :partial => 'sortable_nested_set/item', :collection => category.sns_items %> <% end %>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sortable_nested_set-0.1.24 | app/views/sortable_nested_set/_category.html.erb |