Sha256: 7d54a0ba88a3c0cfc5b4c89394bc2a8fe2d47916f773b5b21b7e01f0c07ef513

Contents?: true

Size: 481 Bytes

Versions: 17

Compression:

Stored size: 481 Bytes

Contents

# frozen_string_literal: true
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

17 entries across 17 versions & 1 rubygems

Version Path
activeadmin-3.2.5 lib/active_admin/views/header.rb
activeadmin-3.2.4 lib/active_admin/views/header.rb
activeadmin-3.2.3 lib/active_admin/views/header.rb
activeadmin-3.2.2 lib/active_admin/views/header.rb
activeadmin-3.2.1 lib/active_admin/views/header.rb
activeadmin-3.2.0 lib/active_admin/views/header.rb
activeadmin-3.1.0 lib/active_admin/views/header.rb
activeadmin-3.0.0 lib/active_admin/views/header.rb
activeadmin-2.14.0 lib/active_admin/views/header.rb
activeadmin-2.13.1 lib/active_admin/views/header.rb
activeadmin-2.13.0 lib/active_admin/views/header.rb
activeadmin-2.12.0 lib/active_admin/views/header.rb
activeadmin-2.11.2 lib/active_admin/views/header.rb
activeadmin-2.11.1 lib/active_admin/views/header.rb
activeadmin-2.11.0 lib/active_admin/views/header.rb
activeadmin-2.10.1 lib/active_admin/views/header.rb
activeadmin-2.10.0 lib/active_admin/views/header.rb