Sha256: 82937b1936cdfc71db86e2202768746b19680b6c63b5ca9d64cca1c3dbc7bf24

Contents?: true

Size: 574 Bytes

Versions: 10

Compression:

Stored size: 574 Bytes

Contents

module Pageflow
  module Admin
    class UsersTab < ViewComponent
      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
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
pageflow-0.10.0 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.9.2 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.9.1 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.9.0 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.8.2 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.8.1 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.8.0 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.7.2 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.7.1 app/views/components/pageflow/admin/users_tab.rb
pageflow-0.7.0 app/views/components/pageflow/admin/users_tab.rb