Sha256: 9ec04c16316a4c5b7780391907c41e693bb2efac14307bb622896a02f5dbd09b

Contents?: true

Size: 1.27 KB

Versions: 1

Compression:

Stored size: 1.27 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
          - flow_meter = page.flow_meter
          - if flow_meter
            %small.info
              Redirects to
              = link_to flow_meter.redirect_url_for_display, flow_meter.redirect_url_for_display
    - 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

1 entries across 1 versions & 1 rubygems

Version Path
radiant-vapor-extension-2.1.0 app/views/admin/pages/_node.html.haml