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-rb-1.6.0 lib/active_admin/views/header.rb
activeadmin-rb-1.5.2 lib/active_admin/views/header.rb
activeadmin-2.8.0 lib/active_admin/views/header.rb
activeadmin-rb-1.5.1 lib/active_admin/views/header.rb
activeadmin-2.7.0 lib/active_admin/views/header.rb
activeadmin-2.6.1 lib/active_admin/views/header.rb
activeadmin-2.6.0 lib/active_admin/views/header.rb
activeadmin-2.5.0 lib/active_admin/views/header.rb
activeadmin-2.4.0 lib/active_admin/views/header.rb
activeadmin-2.3.1 lib/active_admin/views/header.rb
activeadmin-2.3.0 lib/active_admin/views/header.rb
activeadmin-2.2.0 lib/active_admin/views/header.rb
activeadmin-2.1.0 lib/active_admin/views/header.rb
activeadmin-2.0.0 lib/active_admin/views/header.rb
activeadmin-rb-1.5.0 lib/active_admin/views/header.rb
activeadmin-2.0.0.rc2 lib/active_admin/views/header.rb
activeadmin_addons-1.7.1 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb
activeadmin-2.0.0.rc1 lib/active_admin/views/header.rb
activeadmin-rb-1.4.0 lib/active_admin/views/header.rb
activeadmin_addons-1.7.0 vendor/bundle/ruby/2.3.0/bundler/gems/activeadmin-f71b375325eb/lib/active_admin/views/header.rb