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 16 17 18 19 |
# File 'app/views/components/pageflow/admin/users_tab.rb', line 4 def build(theming) account = theming.account if account.users.any? table_for account.users, :i18n => User do column :full_name do |user| link_to user.full_name, admin_user_path(user) end end else div :class => "blank_slate_container" do span :class => "blank_slate" do I18n.t('pageflow.admin.accounts.no_members') end end end end |