2015-05-18 10:38:04 +09:00
|
|
|
Template.users_dashboard.helpers({
|
2015-02-12 23:28:14 -05:00
|
|
|
settings: function() {
|
|
|
|
return {
|
2015-02-16 17:54:25 -05:00
|
|
|
collection: 'all-users',
|
2015-02-12 23:28:14 -05:00
|
|
|
rowsPerPage: 20,
|
|
|
|
showFilter: true,
|
|
|
|
fields: [
|
|
|
|
{ key: 'avatar', label: '', tmpl: Template.users_list_avatar, sortable: false },
|
2015-02-13 01:47:36 -05:00
|
|
|
{ key: 'createdAt', label: 'Member Since', tmpl: Template.users_list_created_at, sort: 'descending' },
|
2015-02-12 23:28:14 -05:00
|
|
|
{ key: 'isAdmin', label: 'Admin', fn: function(val){return val ? 'Yes':'No'} },
|
2015-05-07 16:18:07 +09:00
|
|
|
{ key: 'username', label: 'Username', tmpl: Template.users_list_username },
|
2015-05-14 16:42:19 +09:00
|
|
|
{ key: 'telescope.displayName', label: 'Display Name', tmpl: Template.users_list_display_name },
|
2015-05-07 16:18:07 +09:00
|
|
|
{ key: 'telescope.email', label: 'Email', tmpl: Template.users_list_email },
|
|
|
|
{ key: 'telescope.postCount', label: 'Posts' },
|
|
|
|
{ key: 'telescope.commentCount', label: 'Comments' },
|
|
|
|
{ key: 'telescope.karma', label: 'Karma', fn: function(val){return Math.round(100*val)/100} },
|
|
|
|
{ key: 'telescope.inviteCount', label: 'Invites' },
|
|
|
|
{ key: 'telescope.isInvited', label: 'Invited', fn: function(val){return val ? 'Yes':'No'} },
|
2015-02-12 23:28:14 -05:00
|
|
|
{ key: 'actions', label: 'Actions', tmpl: Template.users_list_actions, sortable: false }
|
|
|
|
]
|
|
|
|
};
|
|
|
|
}
|
|
|
|
});
|