Sha256: 22bc39e5297af647dd7d43ad241f3b3475dfe7eea36e047512f6dbdd37f6b950

Contents?: true

Size: 1.54 KB

Versions: 20

Compression:

Stored size: 1.54 KB

Contents

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

Version data entries

20 entries across 20 versions & 2 rubygems

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