Class: ActiveAdmin::Views::Header

Inherits:
Component
  • Object
show all
Defined in:
lib/active_admin/views/header.rb

Instance Method Summary collapse

Instance Method Details

#build(namespace, menu) ⇒ Object


5
6
7
8
9
10
11
12
13
14
15
# File 'lib/active_admin/views/header.rb', line 5

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