Sha256: 357ad8a68f812014718b45997c3d71f4c2713178f7afc9d42caeb58426c2f72c

Contents?: true

Size: 1013 Bytes

Versions: 5

Compression:

Stored size: 1013 Bytes

Contents

%li{ :class => "page #{page.css_status}", 'data-id' => page.id, :id => "page_#{page.id}" }
  %div
    %span{ :class => "icon #{page.css_status}", :title => page.css_status.humanize }
      = page.css_status.humanize
      
    = link_to page.title, edit_admin_page_path(page)
    
    %span.controls
      = link_to('Add child', new_admin_page_page_path(page), :class => 'icon add', :title => 'Add a child page')
      = link_to('Edit', edit_admin_page_path(page), :class => 'icon edit', :title => 'Edit this page')
      = link_to('Destroy', [:admin, page], :confirm => 'Are you sure?', :method => :delete, :class => 'icon delete', :title => 'Delete this page (children move to parent)', :remote => true)
      = link_to('Duplicate', duplicate_admin_page_path(page), :class => 'icon duplicate', :title => 'Duplicate this page', :remote => true, :method => :post)
      
    %span.permalink
      = page.permalink
      
  %ol{ :id => "page_#{page.id}_children" }
    = render @pages[page.id] if @pages[page.id]

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
page_engine-0.0.5 app/views/admin/pages/_page.html.haml
page_engine-0.0.4 app/views/admin/pages/_page.html.haml
page_engine-0.0.3 app/views/admin/pages/_page.html.haml
page_engine-0.0.2 app/views/admin/pages/_page.html.haml
page_engine-0.0.1 app/views/admin/pages/_page.html.haml