- if route .sitemap_item{:class => "sitemap_level_#{route.level}"} - if route.level > 0 .move_actions.dent_actions = form_link('Outdent', route_to(:sitemap, route.id, 'outdent'), false, {:method => 'post', :class => 'outdent arrow'}) if route.level > 1 %p= ' ' .move_actions - if route.previous_sibling = form_link('Up', route_to(:sitemap, route.id, 'higher'), false, {:method => 'post', :class => 'up arrow'}) - else %p.disabled_up.arrow= ' ' - if route.next_sibling = form_link('Down', route_to(:sitemap, route.id, 'lower'), false, {:method => 'post', :class => 'down arrow'}) - else %p.disabled_down.arrow= ' ' .move_actions.dent_actions = form_link('Indent', route_to(:sitemap, route.id, 'indent'), false, {:method => 'post', :class => 'indent arrow'}) if route.previous_sibling && route.previous_sibling.level == route.level %p= ' ' %h4 #{route.link_text} (#{route.full_path}) .linked_to %p Linked to: %a{:href => route.resource.blank? ? '#' : route_to(route.resource, route.resource_id, 'edit')} [#{route.resource}] ##{route.resource_id} .actions = form_link('Delete', route_to(:sitemap, route.id, 'delete'), 'Are you sure you want to delete this?', {:method => 'delete'}) %a{:href => route_to(:sitemap, route.id, 'edit')} Edit %br.clear