Sha256: c735486f8ef947f9e1e690e8ed74b091eb0d0b23f66dedcfd26e6510fef8e0b3

Contents?: true

Size: 648 Bytes

Versions: 16

Compression:

Stored size: 648 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 partial: options[:node_partial_name],
            collection: node.children.includes(:page, :children),
            locals: { options: options },
            as: 'node'

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
alchemy_cms-4.6.7 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.6 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.5 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.5.1 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.4.5 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.4 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.3 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.2 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.1 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.6.0 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.5.0 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.4.4 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.4.3 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.4.2 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.4.1 lib/rails/generators/alchemy/menus/templates/node.html.slim
alchemy_cms-4.4.0 lib/rails/generators/alchemy/menus/templates/node.html.slim