Sha256: 6f184496ab64c867d876e101b0d02167bc824d515638359c4b49931c3c7791a9

Contents?: true

Size: 686 Bytes

Versions: 3

Compression:

Stored size: 686 Bytes

Contents

- content_for :script do
  = javascript_include_tag "lolita/menu/application.js"
- content_for :style do
  = stylesheet_link_tag "lolita/menu/application.css"
- has_scopes = list.dbi.klass.lolita_nested_tree.scope_keys.any?
.box
  = render_component list, :title
  - use_mapping(Lolita.mappings[:menu]) do
    = render_component list, :new_resource if has_scopes
  .list
    %table
      - if has_scopes
        = render_component "lolita/menu/nested_tree",:columns,:page=>page,:columns=>list.columns, :list => list
      - else
        = render_component "lolita/menu/nested_tree", :unscoped_body, :list => list
  - if has_scopes
    = render_component list, :paginator, :page => page

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
lolita-menu-0.4.2 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.4.1 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.4.0 app/views/components/lolita/menu/nested_tree/_display.html.haml