Sha256: 9c162d1470340a52bb9300a055def18bc68c06dd76339531384954ec989c52c5

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

module Fae
  module NavigationConcern
    extend ActiveSupport::Concern

    # define the navigation structure in this file
    # navigation will default to the sidenav,
    # unless you set the following in the Fae initializer:
    #
    #   config.has_top_nav = true

    # example  structure with top nav:
    #
    # def structure
    #   [
    #     item('Top Nav Item 1', subitems: [
    #       item('Top Nav Dropdown Item 1', class: 'custom-class', path: some_named_route_path),
    #       item('Top Nav Dropdown Item 2', subitems: [
    #         item('Side Nav Item 1', subitems: [
    #           item('Side Nav Nested Item', path: some_named_route_path)
    #         ]),
    #         item('Side Nav Item 1', path: some_named_route_path)
    #       ]),
    #     ]),
    #     item('Pages', subitems: [
    #       item('Home', path: fae.edit_content_block_path('home')),
    #       item('About Us', path: fae.edit_content_block_path('about_us'))
    #     ])
    #   ]
    # end

    def structure
      [
        # scaffold inject marker
      ]
    end

  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
fae-rails-1.4.1 lib/generators/fae/templates/models/concerns/navigation_concern.rb
fae-rails-1.4.0 lib/generators/fae/templates/models/concerns/navigation_concern.rb
fae-rails-1.3.1 lib/generators/fae/templates/models/concerns/navigation_concern.rb
fae-rails-1.3.0 lib/generators/fae/templates/models/concerns/navigation_concern.rb