Sha256: 23e5b646362d440950f09a8da466f0cda2296d197833652c5bfaba3a0335892b

Contents?: true

Size: 1.5 KB

Versions: 24

Compression:

Stored size: 1.5 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}
      %p  
        Views:
        = orange[:analytics].pageviews(route.full_path)
    .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

24 entries across 24 versions & 2 rubygems

Version Path
orange-more-0.6.5 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-more-0.6.4 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-more-0.6.3 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-more-0.6.2 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-more-0.6.0 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-more-0.5.8 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-more-0.5.7 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.5.5 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.5.4 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.5.3 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.5.2 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.5.1 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.4.0 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.9 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.8 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.7 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.6 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.5 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.4 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml
orange-0.3.3 lib/orange-more/sitemap/views/default_resource/sitemap_row.haml