Class: SolidusAdmin::UsersAndRoles::Component

Inherits:
SolidusAdmin::UI::Pages::Index::Component
  • Object
show all
Defined in:
app/components/solidus_admin/users_and_roles/component.rb

Instance Method Summary collapse

Instance Method Details

#tabsObject



10
11
12
13
14
15
16
17
18
19
20
21
22
23
# File 'app/components/solidus_admin/users_and_roles/component.rb', line 10

def tabs
  [
    {
      text: Spree.user_class.model_name.human(count: 2),
      href: solidus_admin.users_path,
      current: model_class == Spree.user_class,
    },
    {
      text: Spree::Role.model_name.human(count: 2),
      href: solidus_admin.roles_path,
      current: model_class == Spree::Role,
    },
  ]
end

#titleObject



4
5
6
7
8
# File 'app/components/solidus_admin/users_and_roles/component.rb', line 4

def title
  page_header_title safe_join([
    tag.div(t(".title")),
  ])
end