Home

Pages Classes Methods

    Pages

    • lib
      • view.html.haml
      • view.html.slim
      • model.rb.tt
      • alchemy_admin.js
      • all.js
      • article.css
      • custom.css
      • dragonfly.rb.tt
      • elements.yml.tt
      • menus.yml.tt
      • page_layouts.yml.tt
      • node.html.haml
      • node.html.slim
      • wrapper.html.haml
      • wrapper.html.slim
      • ability.rb.tt
      • controller.rb.tt
      • module_config.rb.tt
      • layout.html.haml
      • layout.html.slim
      • layout.html.haml
      • layout.html.slim
      • db.rake
      • install.rake
      • sitemap.rake
      • thumbnails.rake
      • tidy.rake
      • upgrade.rake
      • usage.rake
    • cache [node, @page, Alchemy::Current.preview_page?] do

      content_tag :li,¶ ↑

      class: ['nav-item', node.children.any? ? 'dropdown' : nil].compact do
      = link_to_if node.url,
        node.name,
        Alchemy::Current.preview_page? ? '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'

    Validate

    Generated by RDoc 6.7.0.

    Based on Darkfish by Michael Granger.