Sha256: dcd3fcb159e41cd1013ba8e4612b889177605e3a74e1a5ae358e111569d1d212
Contents?: true
Size: 1.42 KB
Versions: 8
Compression:
Stored size: 1.42 KB
Contents
- 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} <span>(#{route.full_path})</span> .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
Version data entries
8 entries across 8 versions & 1 rubygems