<%= link_to structure.title, edit_structure_record_path(structure), :class=>(structure.descendants_count.zero? ? "dark-text" : "dark-arr"), :id=>"a#{structure.id}" %>
<% if can? :update, structure, :context => :manage %>
<%= link_to manage_icon("down"),
move_manage_structure_path(:id => structure.id, :direction => 'down', :format => :json),
:remote => true,
:class=>"icons move_down" %>
<%= link_to manage_icon("up"),
move_manage_structure_path(:id => structure.id, :direction => 'up', :format => :json),
:remote => true,
:class=>"icons move_up" %>
<%= link_to manage_icon("edit"), edit_structure_record_path(structure), :class=>"icons" %>
<%= link_to manage_icon("settings"), edit_manage_structure_path(:id=>structure.id), :class=>"icons" %>
<% end %>
<% if can? :delete, structure, :context => :manage %>
<%= link_to manage_icon("delete"), manage_structure_path(:id=>structure.id),
:method=>:delete, :confirm=>t("manage.confirm_delete"), :class=>"icons" %>
<% end %>