Sha256: c365f7155b4584cc7301f9f621bd809390954a3135e2af862c40e1c03e7b8d88
Contents?: true
Size: 563 Bytes
Versions: 3
Compression:
Stored size: 563 Bytes
Contents
# frozen_string_literal: true class SolidusAdmin::UsersAndRoles::Component < SolidusAdmin::UI::Pages::Index::Component def title page_header_title safe_join([ tag.div(t(".title")), ]) end 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 end
Version data entries
3 entries across 3 versions & 1 rubygems