Sha256: 20dcfb6a881c633ed7db48409add00708d17040895be7296b9af1a389892fd6e

Contents?: true

Size: 1.21 KB

Versions: 14

Compression:

Stored size: 1.21 KB

Contents

- if page.not_found?
  %li.sep  

%li{ id: "item-#{page.id}", class: "page #{css_for_page(page)}" }

  - children = page.children

  - 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)

    - if page.templatized?
      %i.icon-cog

      %span.content-type= page.content_type.try(:name)

    - if page.redirect?
      %i.icon-share-alt

    - 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?(:destroy, page)
        = link_to_icon :trash, 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

14 entries across 14 versions & 2 rubygems

Version Path
locomotive_cms-2.5.7 app/views/locomotive/pages/_page.html.haml
locomotivecms-3.0.0.pre.alpha app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.6 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.6.rc2 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.6.rc1 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.5 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.4 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.3 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.2 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.1 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.0 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.0.rc3 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.0.rc2 app/views/locomotive/pages/_page.html.haml
locomotive_cms-2.5.0.rc1 app/views/locomotive/pages/_page.html.haml