Sha256: 5a306b46d52d7cfa448b0808bd790249e7e896d2f2f8d8dd3bb4615c681b3be6

Contents?: true

Size: 635 Bytes

Versions: 89

Compression:

Stored size: 635 Bytes

Contents

<%% cache [node, @page, @preview_mode] 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 node.children.includes(:page, :children), as: 'node' %>
      </ul>
    <%% end %>
  <%% end %>
<%% end %>

Version data entries

89 entries across 89 versions & 1 rubygems

Version Path
alchemy_cms-5.2.3 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.pre.rc2 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-5.2.2 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.pre.rc1 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.pre.b6 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.pre.b5 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.pre.b4 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.b3 lib/generators/alchemy/menus/templates/node.html.erb
alchemy_cms-6.0.0.b2 lib/generators/alchemy/menus/templates/node.html.erb