- unless simple %td.copy-move - if page.respond_to?('children') = link_to_function image('copy-move', :alt => 'CopyMove', :style => "margin: 6px 0 -6px 0"), "$$('ul.popup-menu').each(function(ul){ul.hide()});$(this).next('ul').toggle();Event.stop(event);", :class => "action" %ul.popup-menu{:style => "display:none"} - if page.children.any? %li= link_to t('copy_move.copy_page_only'), copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)" %li= link_to t('copy_move.copy_page_and_direct_children'), copy_children_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_copy.png)" %li= link_to t('copy_move.copy_page_and_all_children'), copy_tree_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_stack.png)" %li= link_to t('copy_move.move_page_and_children'), move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)" - else %li= link_to t('copy_move.copy_page_only'), copy_page_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white.png)" %li= link_to t('copy_move.move_page'), move_admin_page_url(page), :style =>"background-image: url(/images/admin/page_white_go.png)"