Sha256: 69001939710cb47a3030f254d9cc97f650acf0249b2924d70ded58c695f2496e

Contents?: true

Size: 279 Bytes

Versions: 3

Compression:

Stored size: 279 Bytes

Contents

= nested_pages do |page, subpages|
  hr
  h1= page.identifier
  - for part in page.parts
    .indent
      h3= part.identifier
      - for field in part.subparts.first.fields
        .indent= field.identifier

  = content_tag(:div, subpages, class: "indent") if subpages.present?

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cardboard_cms-0.1.8 app/views/cardboard/super_user/index.html.slim
cardboard_cms-0.1.6 app/views/cardboard/super_user/index.html.slim
cardboard_cms-0.1.4 app/views/cardboard/super_user/index.html.slim