Class: Pageflow::Admin::UsersTab

Inherits:
ViewComponent
  • Object
show all
Defined in:
app/views/components/pageflow/admin/users_tab.rb

Instance Method Summary collapse

Methods inherited from ViewComponent

builder_method

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)
   = theming.
  if .users.any?
    table_for .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