2010-07-16 20:36:07 +00:00
|
|
|
%li{ :id => "item-#{page.id}", :class => "#{'not-found' if page.not_found? } #{'templatized' if page.templatized?}"}
|
2010-05-02 23:33:17 +00:00
|
|
|
- if not page.index? and not page.children.empty?
|
|
|
|
= image_tag 'admin/list/icons/node_closed.png', :class => 'toggler'
|
|
|
|
%em
|
|
|
|
%strong= link_to truncate(page.title, :length => 80), edit_admin_page_url(page)
|
2010-07-21 23:56:42 +00:00
|
|
|
|
|
|
|
.more
|
|
|
|
%span!= t('.updated_at')
|
2010-05-02 23:33:17 +00:00
|
|
|
= l page.updated_at, :format => :short
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-02 23:33:17 +00:00
|
|
|
- if not page.index? and not page.not_found?
|
|
|
|
= link_to image_tag('admin/list/icons/trash.png'), admin_page_url(page), :class => 'remove', :confirm => t('admin.messages.confirm'), :method => :delete
|
2010-07-21 23:56:42 +00:00
|
|
|
|
2010-05-02 23:33:17 +00:00
|
|
|
- if not page.children.empty?
|
|
|
|
%ul{ :id => "folder-#{page._id}", :class => "folder depth-#{(page.depth || 0) + 1}", :data_url => sort_admin_page_url(page), :style => "display: #{cookies["folder-#{page._id}"] || 'block'}" }
|
|
|
|
= render page.children
|