Class: SolidusAdmin::UsersAndRoles::Component
- Inherits:
-
SolidusAdmin::UI::Pages::Index::Component
- Object
- SolidusAdmin::UI::Pages::Index::Component
- SolidusAdmin::UsersAndRoles::Component
show all
- Defined in:
- app/components/solidus_admin/users_and_roles/component.rb
Instance Method Summary
collapse
Instance Method Details
#tabs ⇒ Object
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
|
#title ⇒ Object
4
5
6
7
8
|
# File 'app/components/solidus_admin/users_and_roles/component.rb', line 4
def title
safe_join([
tag.div(t(".title")),
])
end
|