Sha256: ca09ff14014a2e750e9be85d6827e86cf3ce721e0263e12cced544d5a24b7ac2

Contents?: true

Size: 533 Bytes

Versions: 34

Compression:

Stored size: 533 Bytes

Contents

- cache node do
  = content_tag :li,
    class: ['nav-item', node.children.any? ? 'dropdown' : nil].compact do
    = link_to_if node.url,
      node.name,
      @preview_mode ? 'javascript: void(0)' : node.url,
      class: ['nav-link', current_page?(node.url) ? 'active' : nil].compact,
      title: node.title,
      target: node.external? ? '_blank' : nil,
      rel: node.nofollow? ? 'nofollow' : nil
      - if node.children.any?
        %ul.dropdown-menu
          = render node.children.includes(:page, :children), as: 'node'

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
alchemy_cms-5.1.10 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.10 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.9 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.9 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.8 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.8 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.7 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.7 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.6 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.6 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.5 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.5 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-6.0.0.b1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.2.1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.4 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.4 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.3 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.2.0 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.2.0.rc1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.2.0.b1 lib/generators/alchemy/menus/templates/node.html.haml