Sha256: 6b37c36a1d6b8fcfbe09b56f8ca3b33e06e98af007017639984ce9239db4cff5

Contents?: true

Size: 721 Bytes

Versions: 16

Compression:

Stored size: 721 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 class="dropdown-menu">
        <%%= render partial: options[:node_partial_name],
          collection: node.children.includes(:page, :children),
          locals: { options: options },
          as: 'node' %>
      </ul>
    <%% end %>
  <%% end %>
<%% end %>

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.erb
alchemy_cms-4.6.6 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.6.5 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.5.1 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.4.5 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.6.4 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.6.3 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.6.2 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.6.1 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.6.0 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.5.0 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.4.4 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.4.3 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.4.2 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.4.1 lib/rails/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-4.4.0 lib/rails/generators/alchemy/menus/templates/node.html.erb