- unless simple %td.copy-move - if page.respond_to?('children') = link_to_function image('copy-move', :alt => 'CopyMove', :style => "margin: 6px 0 -6px 0"), "$(this).next('ul').toggle();Event.stop(event);", :class => "action" %ul.popup-menu{:style => "display:none"} - if page.children.any? %li= link_to "Copy page only", copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)" %li= link_to "Copy with first-level children", copy_children_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_copy.png)" %li= link_to "Copy whole subtree", copy_tree_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_stack.png)" %li= link_to "Move entire subtree", move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)" - else %li= link_to "Copy page", copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)" %li= link_to "Move page", move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)"