Sha256: 3697e1ca92334dc58bdbb2d65714776c32affdc896acc991f979ea53465960ac
Contents?: true
Size: 1.64 KB
Versions: 3
Compression:
Stored size: 1.64 KB
Contents
<%= content_tag(:div, :id=>dom_id(structure), :class=>"row-container") do %> <div class="gray-row"> <div class="r-corn"> <%= link_to structure.title, edit_structure_record_path(structure), :class=>(structure.descendants_count.zero? ? "dark-text" : "dark-arr"), :id=>"a#{structure.id}" %> <div class="act-bl" style="display:none;"> <% 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 %> </div> </div> </div> <% unless structure.descendants_count.zero? %> <%= content_tag(:div, :class=>"stage", :id=>"structure_#{structure.id}_children") do %> <%= render :partial=>"manage/structures/structure", :collection=>structure.children %> <% end %> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems