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.2 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.3 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.0 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.2 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.0.rc1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.0.beta2 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.1.0.beta1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.0 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.0.rc2 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.0.rc1 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.0.beta2 lib/generators/alchemy/menus/templates/node.html.haml
alchemy_cms-5.0.0.beta1 lib/generators/alchemy/menus/templates/node.html.haml