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