Sha256: d9a9811b22fa08be33a14471b4a8b240e3117418b1ae5b423c51638f4c30815a
Contents?: true
Size: 1.15 KB
Versions: 4
Compression:
Stored size: 1.15 KB
Contents
- if page.not_found? %li.sep %li{ :id => "item-#{page.id}", :class => "page #{css_for_page(page)}" } - children = can?(:manage, page) ? page.children : page.children.find_all { |p| !p.templatized? } - with_children = !children.empty? - if not page.index? and with_children = page_toggler(page) .inner - unless page.index_or_not_found? %em = link_to truncate(page.title, :length => 80), edit_page_url(page) - unless page.default_response_type? %span.response-type= page_response_type_to_string(page) - unless page.translated? %span.untranslated= t('locomotive.shared.list.untranslated') .more %span!= t('.updated_at') = l page.updated_at, :format => :short - if !page.index_or_not_found? && can?(:manage, page) = link_to 'x', page_url(page), :class => 'remove', :data => { :confirm => t('locomotive.messages.confirm') }, :method => :delete - if with_children %ul{ :id => "folder-#{page._id}", :class => "page folder depth-#{(page.depth || 0) + 1}", :'data-url' => sort_page_url(page), :style => "display: #{cookies["folder-#{page._id}"] || 'block'}" } = render children
Version data entries
4 entries across 4 versions & 1 rubygems