Sha256: 4f212fdc656458315a6a0f09327c50142e6a3b51f9b5776f7409449296ac6a68

Contents?: true

Size: 687 Bytes

Versions: 10

Compression:

Stored size: 687 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

10 entries across 10 versions & 1 rubygems

Version Path
lolita-menu-0.3.6 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.3.5 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.3.4 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.3.2 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.3.1 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.3.0 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.2.2 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.2.1 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.2.0 app/views/components/lolita/menu/nested_tree/_display.html.haml
lolita-menu-0.1.7 app/views/components/lolita/menu/nested_tree/_display.html.haml