Sha256: 1f95135d52628bbb51b740374f1490783496603b67f73c0185d27b2964530a64

Contents?: true

Size: 1.06 KB

Versions: 15

Compression:

Stored size: 1.06 KB

Contents

%tr.node{:id => "page-#{page.id}", :class =>"level-#{level}#{children_class}#{virtual_class}"}
  - render_region :node, :locals => {:page => page, :level => level, :simple => simple} do |node|
    - node.title_column do
      %td.page{:style => "padding-left: #{padding_left(level)}px"}
        %span.w1
          - if simple
            = icon
            = node_title
          - else
            = expander + link_to("#{icon} #{node_title}", edit_admin_page_url(page), :title => page.url)
            = page_type
            = spinner
    - node.status_column do
      - unless simple
        %td.status{:class => "#{page.status.name.downcase}-status"}= page.status.name
    - node.add_child_column do
      - unless simple
        %td.add-child= link_to image('add-child', :alt => 'add child'), new_admin_page_child_url(page)
    - node.remove_column do
      - unless simple
        %td.remove= link_to image('remove', :alt => 'remove page'), remove_admin_page_url(page)

- if expanded
  - page.children.each do |child|
    = render_node child, :level => level + 1, :simple => simple

Version data entries

15 entries across 15 versions & 2 rubygems

Version Path
radiantcms-couchrest_model-0.2.4 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.2.2 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.2.1 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.2 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.1.9 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.1.8 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.1.7 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.1.6 app/views/admin/pages/_node.html.haml
radiantcms-couchrest_model-0.1.5 app/views/admin/pages/_node.html.haml
radiant-0.7.2 app/views/admin/pages/_node.html.haml
radiant-0.8.2 app/views/admin/pages/_node.html.haml
radiant-0.8.1 app/views/admin/pages/_node.html.haml
radiant-0.7.0 app/views/admin/pages/_node.html.haml
radiant-0.8.0 app/views/admin/pages/_node.html.haml
radiant-0.7.1 app/views/admin/pages/_node.html.haml