%= content_for :sidebar do %>
<%= t(:'adva.categories.hints.reorder')%>
<% end %> <%= table_for @section.categories, :class => 'categories list tree' do |t| t.column :category, :actions t.row do |r, category| r.add_class "level_#{category.level}" r.cell link_to(category.title, [:edit, :admin, @site, @section, category], class: 'category') r.cell link_to("Edit category", [:edit, :admin, @site, @section, category], class: 'edit') + "\n" + link_to("Delete category", [:admin, @site, @section, category], method: :delete, class: 'delete') end t.empty :p, :class => 'empty' do t(:'adva.categories.no_categories_in_section', :section => @section.title) + "\n" + link_to(t(:'adva.categories.links.create_now'), [:new, :admin, @site, @section, :category]) end end %>