Sha256: 822a66d5de9b60bfae5d103a56592957d4c84d12083c4896c6ca758d397f765c

Contents?: true

Size: 451 Bytes

Versions: 29

Compression:

Stored size: 451 Bytes

Contents

module ActiveAdmin
  module Views
    class Header < Component

      def build(namespace, menu)
        super(id: "header")

        @namespace = namespace
        @menu = menu
        @utility_menu = @namespace.fetch_menu(:utility_navigation)

        site_title @namespace
        global_navigation @menu, class: 'header-item tabs'
        utility_navigation @utility_menu, id: "utility_nav", class: 'header-item tabs'
      end

    end
  end
end

Version data entries

29 entries across 29 versions & 3 rubygems

Version Path
activeadmin-1.4.3 lib/active_admin/views/header.rb
activeadmin-1.4.2 lib/active_admin/views/header.rb
activeadmin-1.4.1 lib/active_admin/views/header.rb
activeadmin-1.4.0 lib/active_admin/views/header.rb
activeadmin_addons-1.6.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb
activeadmin_addons-1.5.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb
activeadmin_addons-1.4.0 vendor/bundle/ruby/2.2.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb
activeadmin_addons-1.3.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb
activeadmin_addons-1.2.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb