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