module Adminterface::Extensions::Views::TitleBar

Public Instance Methods

tag_name() click to toggle source
# File lib/adminterface/extensions/views/title_bar.rb, line 5
def tag_name
  :nav
end

Private Instance Methods

build_action_items() click to toggle source
# File lib/adminterface/extensions/views/title_bar.rb, line 45
def build_action_items
  @action_items.group_by(&:group).each do |_index, items|
    insert_tag(view_factory.action_items, items)
  end
end
build_breadcrumb(_separator = "/") click to toggle source
# File lib/adminterface/extensions/views/title_bar.rb, line 36
def build_breadcrumb(_separator = "/")
  ol id: "breadcrumb", class: "breadcrumb" do
    links.each do |link|
      li(text_node(link), class: "breadcrumb-item")
    end
    li(text_node(@title), class: "breadcrumb-item active")
  end
end
build_header_toggler() click to toggle source
# File lib/adminterface/extensions/views/title_bar.rb, line 15
def build_header_toggler
  button class: "navbar-toggler", "data-aa-header-toggler": {}.to_json do
    span class: "navbar-toggler-icon"
  end
end
build_titlebar_left() click to toggle source
# File lib/adminterface/extensions/views/title_bar.rb, line 11
def build_titlebar_left
  div build_breadcrumb, id: "titlebar_left"
end
build_titlebar_right() click to toggle source
Calls superclass method
# File lib/adminterface/extensions/views/title_bar.rb, line 21
def build_titlebar_right
  return if @action_items.blank?

  super
end