Class: Pageflow::Admin::UsersTab
- Inherits:
-
ViewComponent
- Object
- Arbre::Component
- ViewComponent
- Pageflow::Admin::UsersTab
- Defined in:
- app/views/components/pageflow/admin/users_tab.rb
Instance Method Summary collapse
Methods inherited from ViewComponent
Instance Method Details
#build(theming) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 15 |
# File 'app/views/components/pageflow/admin/users_tab.rb', line 4 def build(theming) account = theming.account (account.users, blank_slate_text: I18n.t('pageflow.admin.accounts.no_members')) do table_for_collection sortable: true, class: 'users', i18n: User do column :full_name, sortable: :last_name do |user| link_to user.formal_name, admin_user_path(user) end column :created_at end end end |