Sha256: 415982228f2f488185c740ea435252f5101c3a016bb69457e70f465410748f31

Contents?: true

Size: 567 Bytes

Versions: 5

Compression:

Stored size: 567 Bytes

Contents

module Pageflow
  module Admin
    class UsersTab < ViewComponent
      def build(theming)
        account = theming.account
        embedded_index_table(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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
pageflow-0.11.4 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.11.3 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.11.2 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.11.1 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.11.0 app/views/components/pageflow/admin/users_tab.rb